Skip to content

Commit 14a4095

Browse files
krukowCopilot
andcommitted
Fix switch-model!/set-model! fdefs to include :model-capabilities
The s/fdef specs for switch-model! and set-model! only allowed :reasoning-effort in opts. Now they also allow :model-capabilities, matching the updated implementation. Addresses Copilot Code Review feedback on PR #87. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent b03b44b commit 14a4095

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/github/copilot_sdk/instrument.clj

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,13 +223,15 @@
223223
(s/fdef github.copilot-sdk.session/switch-model!
224224
:args (s/cat :session ::specs/session
225225
:model-id string?
226-
:opts (s/? (s/nilable (s/keys :opt-un [::specs/reasoning-effort]))))
226+
:opts (s/? (s/nilable (s/keys :opt-un [::specs/reasoning-effort
227+
::specs/model-capabilities]))))
227228
:ret (s/nilable ::specs/model-id))
228229

229230
(s/fdef github.copilot-sdk.session/set-model!
230231
:args (s/cat :session ::specs/session
231232
:model-id string?
232-
:opts (s/? (s/nilable (s/keys :opt-un [::specs/reasoning-effort]))))
233+
:opts (s/? (s/nilable (s/keys :opt-un [::specs/reasoning-effort
234+
::specs/model-capabilities]))))
233235
:ret (s/nilable ::specs/model-id))
234236

235237
(s/fdef github.copilot-sdk.session/log!

0 commit comments

Comments
 (0)