test: remove brittle explore model check

pull/16301/head
Shoubhit Dash 2026-03-07 12:57:55 +05:30
parent a34148bc06
commit 4fba3280e8
1 changed files with 0 additions and 76 deletions

View File

@ -964,82 +964,6 @@ test("getSmallModel respects config small_model override", async () => {
})
})
test("getExploreModel returns preferred explore model", async () => {
await using tmp = await tmpdir({
config: {
provider: {
"custom-provider": {
name: "Custom Provider",
npm: "@ai-sdk/openai-compatible",
api: "https://api.custom.com/v1",
env: ["CUSTOM_API_KEY"],
models: {
"gpt-5-3-codex-spark": {
name: "GPT-5.3 Codex Spark",
tool_call: true,
limit: {
context: 128000,
output: 4096,
},
},
"claude-haiku-4.5": {
name: "Claude Haiku 4.5",
tool_call: true,
limit: {
context: 128000,
output: 4096,
},
},
"gemini-3-flash-preview": {
name: "Gemini 3 Flash",
tool_call: true,
limit: {
context: 128000,
output: 4096,
},
},
"MiniMax-M2-5": {
name: "MiniMax M2.5",
tool_call: true,
limit: {
context: 128000,
output: 4096,
},
},
"GLM-5": {
name: "GLM-5",
tool_call: true,
limit: {
context: 128000,
output: 4096,
},
},
"Kimi-K2-5": {
name: "Kimi K2.5",
tool_call: true,
limit: {
context: 128000,
output: 4096,
},
},
},
options: {
apiKey: "custom-key",
},
},
},
},
})
await Instance.provide({
directory: tmp.path,
fn: async () => {
const model = await Provider.getExploreModel("custom-provider")
expect(model).toBeDefined()
expect(model?.id).toBe("gpt-5-3-codex-spark")
},
})
})
test("getExploreModel matches fallback models case-insensitively", async () => {
await using tmp = await tmpdir({
config: {