chore: update dependencies

This commit is contained in:
Amruth Pillai
2026-07-08 18:54:00 +02:00
parent f9eafdf5cf
commit af5c7dde82
114 changed files with 7209 additions and 2056 deletions
+2 -2
View File
@@ -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"
}
}
+23
View File
@@ -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);
}
});
});
+18
View File
@@ -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": "",
};