mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-08-23 23:02:17 +10:00
chore: update dependencies
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@reactive-resume/config": "workspace:*",
|
||||
"@typescript/native-preview": "7.0.0-dev.20260705.1",
|
||||
"typescript": "^6.0.3"
|
||||
"@typescript/native-preview": "7.0.0-dev.20260707.2",
|
||||
"typescript": "^7.0.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { AI_PROVIDER_DEFAULT_BASE_URLS, aiProviderSchema } from "./types";
|
||||
|
||||
const popularProviderDefaults = {
|
||||
mistral: "https://api.mistral.ai/v1",
|
||||
cohere: "https://api.cohere.com/v2",
|
||||
xai: "https://api.x.ai/v1",
|
||||
groq: "https://api.groq.com/openai/v1",
|
||||
deepseek: "https://api.deepseek.com/v1",
|
||||
togetherai: "https://api.together.xyz/v1",
|
||||
fireworks: "https://api.fireworks.ai/inference/v1",
|
||||
cerebras: "https://api.cerebras.ai/v1",
|
||||
perplexity: "https://api.perplexity.ai",
|
||||
} as const;
|
||||
|
||||
describe("AI provider types", () => {
|
||||
it("accepts popular AI SDK text providers with default base URLs", () => {
|
||||
for (const [provider, baseURL] of Object.entries(popularProviderDefaults)) {
|
||||
expect(aiProviderSchema.parse(provider)).toBe(provider);
|
||||
expect(AI_PROVIDER_DEFAULT_BASE_URLS[provider as keyof typeof AI_PROVIDER_DEFAULT_BASE_URLS]).toBe(baseURL);
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -6,6 +6,15 @@ const AI_PROVIDERS = [
|
||||
"gemini",
|
||||
"vercel-ai-gateway",
|
||||
"openrouter",
|
||||
"mistral",
|
||||
"cohere",
|
||||
"xai",
|
||||
"groq",
|
||||
"deepseek",
|
||||
"togetherai",
|
||||
"fireworks",
|
||||
"cerebras",
|
||||
"perplexity",
|
||||
"ollama",
|
||||
"openai-compatible",
|
||||
] as const;
|
||||
@@ -20,6 +29,15 @@ export const AI_PROVIDER_DEFAULT_BASE_URLS: Record<AIProvider, string> = {
|
||||
gemini: "https://generativelanguage.googleapis.com/v1beta",
|
||||
"vercel-ai-gateway": "https://ai-gateway.vercel.sh/v3/ai",
|
||||
openrouter: "https://openrouter.ai/api/v1",
|
||||
mistral: "https://api.mistral.ai/v1",
|
||||
cohere: "https://api.cohere.com/v2",
|
||||
xai: "https://api.x.ai/v1",
|
||||
groq: "https://api.groq.com/openai/v1",
|
||||
deepseek: "https://api.deepseek.com/v1",
|
||||
togetherai: "https://api.together.xyz/v1",
|
||||
fireworks: "https://api.fireworks.ai/inference/v1",
|
||||
cerebras: "https://api.cerebras.ai/v1",
|
||||
perplexity: "https://api.perplexity.ai",
|
||||
ollama: "https://ollama.com/api",
|
||||
"openai-compatible": "",
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user