mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-04 15:09:51 +00:00
test(opencode): cover Azure completion reasoning (#40340)
Co-authored-by: Aiden Cline <rekram1-node@users.noreply.github.com>
This commit is contained in:
parent
7becbbf711
commit
b0b1149233
1 changed files with 14 additions and 4 deletions
|
|
@ -681,24 +681,34 @@ describe("ProviderTransform.options - gpt-5 reasoningEffort", () => {
|
|||
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({
|
||||
model: createModel("gpt-5.5"),
|
||||
sessionID,
|
||||
providerOptions: {},
|
||||
providerOptions: { useCompletionUrls: true },
|
||||
})
|
||||
|
||||
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({
|
||||
model: createModel("gpt-5.6"),
|
||||
sessionID,
|
||||
providerOptions: {},
|
||||
})
|
||||
|
||||
expect(result.reasoningEffort).toBeUndefined()
|
||||
expect(result.reasoningEffort).toBe("medium")
|
||||
})
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue