mirror of
https://github.com/getpaseo/paseo.git
synced 2026-10-27 11:42:52 +00:00
test(cli): replace OpenAI-specific assertions with generic third-party check
The opencode provider test asserted models with "openai/" or "openrouter/openai/" prefixes, but these are environment-dependent — opencode returns whatever providers are connected, and CI may not have OpenAI configured. Replace with a generic check that at least one non-opencode/ namespaced model exists. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
1d04fbeb80
commit
b268c17fe2
@@ -224,15 +224,8 @@ try {
|
||||
"opencode output should include at least one first-party opencode model",
|
||||
);
|
||||
assert(
|
||||
ids.some((id) => id.startsWith("openai/") || id.startsWith("openrouter/openai/")),
|
||||
"opencode output should include at least one OpenAI-backed model",
|
||||
);
|
||||
assert(
|
||||
ids.some(
|
||||
(id) =>
|
||||
(id.startsWith("openai/") || id.startsWith("openrouter/openai/")) && id.includes("codex"),
|
||||
),
|
||||
"opencode output should include at least one codex-optimized OpenAI model",
|
||||
ids.some((id) => id.includes("/") && !id.startsWith("opencode/")),
|
||||
"opencode output should include at least one third-party provider model",
|
||||
);
|
||||
assert(
|
||||
data.every((m) => m.model && m.id && m.description !== undefined),
|
||||
|
||||
Reference in New Issue
Block a user