Skip to content

Commit d6f241e

Browse files
committed
Add o3 openai model
1 parent 6018ea0 commit d6f241e

File tree

5 files changed

+9
-3
lines changed

5 files changed

+9
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
- Add env support for mcps
66
- Add web_search capability
7+
- Add `o3` model support.
78

89
## 0.0.3
910

docs/models.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
### OpenAI
1414

1515
- [o4-mini](https://platform.openai.com/docs/models/o4-mini)
16+
- [o3](https://platform.openai.com/docs/models/o3)
1617
- [gpt-4.1](https://platform.openai.com/docs/models/gpt-4.1)
1718

1819
### Anthropic

docs/protocol.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,15 +262,15 @@ interface ChatPromptParams {
262262
}
263263

264264
/**
265-
* The currently supported models, auto means let server decide.
265+
* The currently supported models.
266266
*/
267267
type ChatModel =
268268
| 'o4-mini'
269+
| 'o3'
269270
| 'gpt-4.1'
270271
| 'claude-sonnet-4-0'
271272
| 'claude-opus-4-0'
272273
| 'claude-3-5-haiku-latest'
273-
| 'auto'
274274
OllamaRunningModel;
275275

276276
/**

src/eca/db.clj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
:chat-default-behavior "chat"
1212
:models {"o4-mini" {:mcp-tools true
1313
:web-search false}
14+
"o3" {:mcp-tools true
15+
:web-search false}
1416
"gpt-4.1" {:mcp-tools true
1517
:web-search true}
1618
"claude-sonnet-4-0" {:mcp-tools true

src/eca/llm_api.clj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@
3434
(map mcp-tool->llm-tool mcp-tools))
3535
web-search (:web-search model-config)]
3636
(cond
37-
(contains? #{"o4-mini" "gpt-4.1"} model)
37+
(contains? #{"o4-mini"
38+
"o3"
39+
"gpt-4.1"} model)
3840
(llm-providers.openai/completion!
3941
{:model model
4042
:context context

0 commit comments

Comments
 (0)