Skip to content

Commit ea78d3b

Browse files
committed
Update configs for chatgpt-5
1 parent 0aa0930 commit ea78d3b

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

express-server/src/routes/create.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ const buildPipelineJob = (
255255
cruxes: updatedConfig.cruxesEnabled,
256256
},
257257
llm: {
258-
model: "gpt-4o-mini", // ! Change when we allow different models
258+
model: "gpt-5-mini", // ! Change when we allow different models
259259
},
260260
},
261261
data: updatedConfig.data,

pyserver/config.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
DRY_RUN = False
99

1010
# cheapest for testing
11-
MODEL = "gpt-4o-mini" # prod default: "gpt-4-turbo-preview"
11+
MODEL = "gpt-5-mini" # prod default: "gpt-4-turbo-preview"
1212

1313
COST_BY_MODEL = {
1414
# GPT-4o mini: Input is $0.150 / 1M tokens, Output is $0.600 / 1M tokens
@@ -17,6 +17,8 @@
1717
# GPT-4o : Input is $2.50 / 1M tokens, Output is $10.00/1M tokens
1818
# or: input is $0.0025/1K tokens, output is $0.01/1K tokens
1919
"gpt-4o": {"in_per_1K": 0.0025, "out_per_1K": 0.01},
20+
# GPT-5-mini: Input is $0.250 / 1M tokens, Output is $2.00/1M tokens
21+
"gpt-5-mini": {"in_per_1K": 0.00025, "out_per_1k": 0.002}
2022
}
2123

2224
# for web-app mode, require at least 3 words in order to extract meaningful claims

pyserver/main.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,6 @@ def comments_to_tree(
499499
{"role": "system", "content": req.llm.system_prompt},
500500
{"role": "user", "content": full_prompt},
501501
],
502-
temperature=0.0,
503502
response_format={"type": "json_object"},
504503
)
505504
try:
@@ -634,7 +633,6 @@ def comment_to_claims(llm: dict, comment: str, tree: dict, api_key: str, comment
634633
{"role": "system", "content": llm.system_prompt},
635634
{"role": "user", "content": full_prompt},
636635
],
637-
temperature=0.0,
638636
response_format=ClaimsSchema,
639637
)
640638

@@ -1146,7 +1144,6 @@ def dedup_claims(claims: list, llm: LLMConfig, api_key: str, topic_name: str = "
11461144
{"role": "system", "content": llm.system_prompt},
11471145
{"role": "user", "content": full_prompt},
11481146
],
1149-
temperature=0.0,
11501147
response_format={"type": "json_object"},
11511148
)
11521149
try:
@@ -1884,7 +1881,6 @@ def cruxes_for_topic(
18841881
{"role": "system", "content": llm.system_prompt},
18851882
{"role": "user", "content": full_prompt},
18861883
],
1887-
temperature=0.0,
18881884
response_format={"type": "json_object"},
18891885
)
18901886
crux = response.choices[0].message.content

0 commit comments

Comments
 (0)