test(opencode): cover Azure completion reasoning (#40340)
Co-authored-by: Aiden Cline <rekram1-node@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
7becbbf711
commit
b0b1149233
@@ -681,24 +681,34 @@ describe("ProviderTransform.options - gpt-5 reasoningEffort", () => {
|
|||||||
expect(result.reasoningEffort).toBeUndefined()
|
expect(result.reasoningEffort).toBeUndefined()
|
||||||
})
|
})
|
||||||
|
|
||||||
test("gpt-5.5 should NOT set reasoningEffort", () => {
|
test("gpt-5.5 should NOT set reasoningEffort for the completions API", () => {
|
||||||
const result = ProviderTransform.options({
|
const result = ProviderTransform.options({
|
||||||
model: createModel("gpt-5.5"),
|
model: createModel("gpt-5.5"),
|
||||||
sessionID,
|
sessionID,
|
||||||
providerOptions: {},
|
providerOptions: { useCompletionUrls: true },
|
||||||
})
|
})
|
||||||
|
|
||||||
expect(result.reasoningEffort).toBeUndefined()
|
expect(result.reasoningEffort).toBeUndefined()
|
||||||
})
|
})
|
||||||
|
|
||||||
test("gpt-5.6 should NOT set reasoningEffort", () => {
|
test("gpt-5.6 should NOT set reasoningEffort for the completions API", () => {
|
||||||
|
const result = ProviderTransform.options({
|
||||||
|
model: createModel("gpt-5.6"),
|
||||||
|
sessionID,
|
||||||
|
providerOptions: { useCompletionUrls: true },
|
||||||
|
})
|
||||||
|
|
||||||
|
expect(result.reasoningEffort).toBeUndefined()
|
||||||
|
})
|
||||||
|
|
||||||
|
test("gpt-5.6 should set reasoningEffort for the responses API", () => {
|
||||||
const result = ProviderTransform.options({
|
const result = ProviderTransform.options({
|
||||||
model: createModel("gpt-5.6"),
|
model: createModel("gpt-5.6"),
|
||||||
sessionID,
|
sessionID,
|
||||||
providerOptions: {},
|
providerOptions: {},
|
||||||
})
|
})
|
||||||
|
|
||||||
expect(result.reasoningEffort).toBeUndefined()
|
expect(result.reasoningEffort).toBe("medium")
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user