Skip to content

Commit dcaa3e5

Browse files
committed
support gpt-5 new models
1 parent 0d5ff4e commit dcaa3e5

File tree

3 files changed

+24
-2
lines changed

3 files changed

+24
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
## Unreleased
44

5-
- Support `claude-opus-4-1` model;
5+
- Support `claude-opus-4-1` model.
6+
- Support `gpt-5`, `gpt-5-mini`, `gpt-5-nano` models.
67

78
## 0.18.0
89

src/eca/db.clj

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,24 @@
2727
:max-output-tokens 32000
2828
:input-token-cost (/ 2.0 one-million)
2929
:output-token-cost (/ 8.0 one-million)}
30+
"gpt-5" {:tools true
31+
:web-search true
32+
:reason? true
33+
:max-output-tokens 32000
34+
:input-token-cost (/ 1.25 one-million)
35+
:output-token-cost (/ 10.0 one-million)}
36+
"gpt-5-mini" {:tools true
37+
:web-search true
38+
:reason? true
39+
:max-output-tokens 32000
40+
:input-token-cost (/ 0.25 one-million)
41+
:output-token-cost (/ 2.0 one-million)}
42+
"gpt-5-nano" {:tools true
43+
:web-search true
44+
:reason? true
45+
:max-output-tokens 32000
46+
:input-token-cost (/ 0.05 one-million)
47+
:output-token-cost (/ 0.4 one-million)}
3048
"claude-sonnet-4-0" {:tools true
3149
:web-search true
3250
:max-output-tokens 8196

src/eca/llm_api.clj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,10 @@
119119
(cond
120120
(contains? #{"o4-mini"
121121
"o3"
122-
"gpt-4.1"} model)
122+
"gpt-4.1"
123+
"gpt-5"
124+
"gpt-5-mini"
125+
"gpt-5-nano"} model)
123126
(llm-providers.openai/completion!
124127
{:model model
125128
:instructions instructions

0 commit comments

Comments
 (0)