mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-20 09:01:49 +00:00
Add GitHub Copilot test to packages/ai
This commit is contained in:
parent
b66157c649
commit
5a59b8d18d
1 changed files with 16 additions and 0 deletions
|
|
@ -678,6 +678,22 @@ describe("Generate E2E Tests", () => {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
describe.skipIf(!process.env.GITHUB_COPILOT_TOKEN)("GitHub Copilot Provider (gpt-4o via OpenAI Completions)", () => {
|
||||||
|
const llm = getModel("github-copilot", "gpt-4o");
|
||||||
|
|
||||||
|
it("should complete basic text generation", async () => {
|
||||||
|
await basicTextGeneration(llm, { apiKey: process.env.GITHUB_COPILOT_TOKEN });
|
||||||
|
});
|
||||||
|
|
||||||
|
it("should handle tool calling", async () => {
|
||||||
|
await handleToolCall(llm, { apiKey: process.env.GITHUB_COPILOT_TOKEN });
|
||||||
|
});
|
||||||
|
|
||||||
|
it("should handle streaming", async () => {
|
||||||
|
await handleStreaming(llm, { apiKey: process.env.GITHUB_COPILOT_TOKEN });
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
// Check if ollama is installed
|
// Check if ollama is installed
|
||||||
let ollamaInstalled = false;
|
let ollamaInstalled = false;
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue