refactor(provider): use runtime flag for experimental models (#27606)

This commit is contained in:
Shoubhit Dash 2026-05-15 02:48:01 +05:30 committed by GitHub
commit 34198f422c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 77 additions and 12 deletions

View file

@ -19,6 +19,7 @@ describe("RuntimeFlags", () => {
OPENCODE_EXPERIMENTAL: "true",
OPENCODE_ENABLE_EXA: "true",
OPENCODE_ENABLE_PARALLEL: "true",
OPENCODE_ENABLE_EXPERIMENTAL_MODELS: "true",
OPENCODE_ENABLE_QUESTION_TOOL: "true",
OPENCODE_CLIENT: "desktop",
}),
@ -29,6 +30,7 @@ describe("RuntimeFlags", () => {
expect(flags.disableDefaultPlugins).toBe(true)
expect(flags.enableExa).toBe(true)
expect(flags.enableParallel).toBe(true)
expect(flags.enableExperimentalModels).toBe(true)
expect(flags.enableQuestionTool).toBe(true)
expect(flags.experimentalScout).toBe(true)
expect(flags.experimentalBackgroundSubagents).toBe(true)
@ -48,6 +50,7 @@ describe("RuntimeFlags", () => {
expect(flags.disableDefaultPlugins).toBe(true)
expect(flags.disableClaudeCodeSkills).toBe(false)
expect(flags.enableExa).toBe(false)
expect(flags.enableExperimentalModels).toBe(false)
expect(flags.client).toBe("cli")
}),
)