mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-24 05:35:15 +00:00
Rename test provider helper
This commit is contained in:
parent
93b5f5c229
commit
935163cf07
1 changed files with 2 additions and 2 deletions
|
|
@ -294,7 +294,7 @@ function providerCfg(url: string) {
|
|||
}
|
||||
}
|
||||
|
||||
function toolChoiceRequiredDisabledProviderCfg(url: string) {
|
||||
function providerCfgWithoutRequiredToolChoice(url: string) {
|
||||
return {
|
||||
...providerCfg(url),
|
||||
provider: {
|
||||
|
|
@ -508,7 +508,7 @@ it.instance("loop calls LLM and returns assistant message", () =>
|
|||
|
||||
it.instance("structured output uses auto tool choice when model disables required tool choice", () =>
|
||||
Effect.gen(function* () {
|
||||
const { llm } = yield* useServerConfig(toolChoiceRequiredDisabledProviderCfg)
|
||||
const { llm } = yield* useServerConfig(providerCfgWithoutRequiredToolChoice)
|
||||
const prompt = yield* SessionPrompt.Service
|
||||
const sessions = yield* Session.Service
|
||||
const chat = yield* sessions.create({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue