Skip to content

Commit 029866c

Browse files
committed
Fix web-search not working for custom models using openai/anthropic apis.
1 parent 4eb368e commit 029866c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## Unreleased
44

5+
- Fix web-search not working for custom models using openai/anthropic apis.
6+
57
## 0.70.4
68

79
- Support `visible` field in hooks configuration to show or not in client.

src/eca/llm_api.clj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@
221221
:instructions instructions
222222
:user-messages user-messages
223223
:max-output-tokens max-output-tokens
224+
:web-search web-search
224225
:reason? reason?
225226
:supports-image? supports-image?
226227
:past-messages past-messages
@@ -237,14 +238,14 @@
237238
(on-error-wrapper {:exception e})))))
238239

239240
(defn simple-prompt
240-
[{:keys [provider model model-capabilitiies instructions
241+
[{:keys [provider model model-capabilities instructions
241242
prompt user-messages config tools provider-auth]}]
242243
(let [result-p (promise)
243244
output* (atom "")]
244245
(complete!
245246
{:provider provider
246247
:model model
247-
:model-capabilitiies model-capabilitiies
248+
:model-capabilities model-capabilities
248249
:instructions instructions
249250
:tools tools
250251
:provider-auth provider-auth

0 commit comments

Comments
 (0)