mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-15 10:05:18 +00:00
adding pi for gigacode
This commit is contained in:
parent
bd030904bc
commit
e37bde0103
3 changed files with 9 additions and 5 deletions
|
|
@ -614,6 +614,7 @@ fn available_agent_ids() -> Vec<AgentId> {
|
|||
AgentId::Codex,
|
||||
AgentId::Opencode,
|
||||
AgentId::Amp,
|
||||
AgentId::Pi,
|
||||
AgentId::Mock,
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -31,10 +31,12 @@ describe("OpenCode-compatible Model API", () => {
|
|||
const providers = response.data?.all ?? [];
|
||||
const mockProvider = providers.find((entry) => entry.id === "mock");
|
||||
const ampProvider = providers.find((entry) => entry.id === "amp");
|
||||
const piProvider = providers.find((entry) => entry.id === "pi");
|
||||
const sandboxProvider = providers.find((entry) => entry.id === "sandbox-agent");
|
||||
expect(sandboxProvider).toBeUndefined();
|
||||
expect(mockProvider).toBeDefined();
|
||||
expect(ampProvider).toBeDefined();
|
||||
expect(piProvider).toBeDefined();
|
||||
|
||||
const mockModels = mockProvider?.models ?? {};
|
||||
expect(mockModels["mock"]).toBeDefined();
|
||||
|
|
@ -57,6 +59,7 @@ describe("OpenCode-compatible Model API", () => {
|
|||
|
||||
expect(providerIds.has("claude")).toBe(true);
|
||||
expect(providerIds.has("codex")).toBe(true);
|
||||
expect(providerIds.has("pi")).toBe(true);
|
||||
expect(
|
||||
providerIds.has("opencode") || Array.from(providerIds).some((id) => id.startsWith("opencode:"))
|
||||
).toBe(true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue