Skip to content

Commit 3a56bd3

Browse files
committed
Update configs for chatgpt-5
1 parent 7f3192c commit 3a56bd3

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
@@ -256,7 +256,7 @@ const buildPipelineJob = (
256256
cruxes: updatedConfig.cruxesEnabled,
257257
},
258258
llm: {
259-
model: "gpt-4o-mini", // ! Change when we allow different models
259+
model: "gpt-5-mini", // ! Change when we allow different models
260260
},
261261
},
262262
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
@@ -456,7 +456,6 @@ def comments_to_tree(
456456
{"role": "system", "content": req.llm.system_prompt},
457457
{"role": "user", "content": full_prompt},
458458
],
459-
temperature=0.0,
460459
response_format={"type": "json_object"},
461460
)
462461
try:
@@ -572,7 +571,6 @@ def comment_to_claims(llm: dict, comment: str, tree: dict, api_key: str, comment
572571
},
573572
{"role": "user", "content": full_prompt},
574573
],
575-
temperature=0.0,
576574
response_format={"type": "json_object"},
577575
)
578576
try:
@@ -998,7 +996,6 @@ def dedup_claims(claims: list, llm: LLMConfig, api_key: str, topic_name: str = "
998996
{"role": "system", "content": llm.system_prompt},
999997
{"role": "user", "content": full_prompt},
1000998
],
1001-
temperature=0.0,
1002999
response_format={"type": "json_object"},
10031000
)
10041001
try:
@@ -1564,7 +1561,6 @@ def cruxes_for_topic(
15641561
{"role": "system", "content": llm.system_prompt},
15651562
{"role": "user", "content": full_prompt},
15661563
],
1567-
temperature=0.0,
15681564
response_format={"type": "json_object"},
15691565
)
15701566
crux = response.choices[0].message.content

0 commit comments

Comments
 (0)