Add Ant Ling provider

This commit is contained in:
Mario Zechner
2026-06-02 16:37:44 +02:00
parent 6cb23f9b5d
commit 25a4a8ed1e
16 changed files with 275 additions and 12 deletions

View File

@@ -1169,6 +1169,27 @@ describe("Generate E2E Tests", () => {
},
);
describe.skipIf(!process.env.ANT_LING_API_KEY)("Ant Ling Provider (Ling 2.6 Flash via OpenAI Completions)", () => {
const llm = getModel("ant-ling", "Ling-2.6-flash");
it("should complete basic text generation", { retry: 3 }, async () => {
await basicTextGeneration(llm);
});
it("should handle tool calling", { retry: 3 }, async () => {
await handleToolCall(llm);
});
it("should handle streaming", { retry: 3 }, async () => {
await handleStreaming(llm);
});
it("should handle thinking mode", { retry: 3 }, async () => {
const ringModel = getModel("ant-ling", "Ring-2.6-1T");
await handleThinking(ringModel, { reasoningEffort: "high" });
});
});
// =========================================================================
// OAuth-based providers (credentials from ~/.pi/agent/oauth.json)
// Tokens are resolved at module level (see oauthTokens above)