mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-08-23 14:52:18 +10:00
chore: integrate improve-integration
This commit is contained in:
@@ -142,6 +142,27 @@ describe("AISettingsSection", () => {
|
||||
mutations.delete.mockReset();
|
||||
});
|
||||
|
||||
it("offers popular AI SDK providers and labels Ollama as cloud-hosted", () => {
|
||||
renderSection();
|
||||
|
||||
for (const label of [
|
||||
"Mistral AI",
|
||||
"Cohere",
|
||||
"xAI Grok",
|
||||
"Groq",
|
||||
"DeepSeek",
|
||||
"Together.ai",
|
||||
"Fireworks",
|
||||
"Cerebras",
|
||||
"Perplexity",
|
||||
"Ollama Cloud",
|
||||
]) {
|
||||
expect(screen.getByRole("option", { name: label })).toBeInTheDocument();
|
||||
}
|
||||
|
||||
expect(screen.queryByRole("option", { name: "Ollama" })).not.toBeInTheDocument();
|
||||
});
|
||||
|
||||
it("uses the save-and-test result as the connected provider row", async () => {
|
||||
const created = provider({});
|
||||
const tested = provider({ enabled: true, testStatus: "success", lastTestedAt: new Date("2026-07-04T01:00:00Z") });
|
||||
|
||||
@@ -64,10 +64,73 @@ const providerOptions: AIProviderOption[] = [
|
||||
defaultBaseURL: AI_PROVIDER_DEFAULT_BASE_URLS.openrouter,
|
||||
defaultModel: "openai/gpt-4.1",
|
||||
},
|
||||
{
|
||||
value: "mistral",
|
||||
label: t`Mistral AI`,
|
||||
keywords: ["mistral", "magistral"],
|
||||
defaultBaseURL: AI_PROVIDER_DEFAULT_BASE_URLS.mistral,
|
||||
defaultModel: "mistral-large-latest",
|
||||
},
|
||||
{
|
||||
value: "cohere",
|
||||
label: t`Cohere`,
|
||||
keywords: ["cohere", "command"],
|
||||
defaultBaseURL: AI_PROVIDER_DEFAULT_BASE_URLS.cohere,
|
||||
defaultModel: "command-a-03-2025",
|
||||
},
|
||||
{
|
||||
value: "xai",
|
||||
label: t`xAI Grok`,
|
||||
keywords: ["xai", "grok"],
|
||||
defaultBaseURL: AI_PROVIDER_DEFAULT_BASE_URLS.xai,
|
||||
defaultModel: "grok-4",
|
||||
},
|
||||
{
|
||||
value: "groq",
|
||||
label: t`Groq`,
|
||||
keywords: ["groq", "llama"],
|
||||
defaultBaseURL: AI_PROVIDER_DEFAULT_BASE_URLS.groq,
|
||||
defaultModel: "llama-3.3-70b-versatile",
|
||||
},
|
||||
{
|
||||
value: "deepseek",
|
||||
label: t`DeepSeek`,
|
||||
keywords: ["deepseek"],
|
||||
defaultBaseURL: AI_PROVIDER_DEFAULT_BASE_URLS.deepseek,
|
||||
defaultModel: "deepseek-chat",
|
||||
},
|
||||
{
|
||||
value: "togetherai",
|
||||
label: t`Together.ai`,
|
||||
keywords: ["together", "togetherai", "llama"],
|
||||
defaultBaseURL: AI_PROVIDER_DEFAULT_BASE_URLS.togetherai,
|
||||
defaultModel: "meta-llama/Meta-Llama-3.3-70B-Instruct-Turbo",
|
||||
},
|
||||
{
|
||||
value: "fireworks",
|
||||
label: t`Fireworks`,
|
||||
keywords: ["fireworks", "llama", "deepseek"],
|
||||
defaultBaseURL: AI_PROVIDER_DEFAULT_BASE_URLS.fireworks,
|
||||
defaultModel: "accounts/fireworks/models/llama-v3p3-70b-instruct",
|
||||
},
|
||||
{
|
||||
value: "cerebras",
|
||||
label: t`Cerebras`,
|
||||
keywords: ["cerebras", "llama"],
|
||||
defaultBaseURL: AI_PROVIDER_DEFAULT_BASE_URLS.cerebras,
|
||||
defaultModel: "llama3.3-70b",
|
||||
},
|
||||
{
|
||||
value: "perplexity",
|
||||
label: t`Perplexity`,
|
||||
keywords: ["perplexity", "sonar"],
|
||||
defaultBaseURL: AI_PROVIDER_DEFAULT_BASE_URLS.perplexity,
|
||||
defaultModel: "sonar-pro",
|
||||
},
|
||||
{
|
||||
value: "ollama",
|
||||
label: t`Ollama`,
|
||||
keywords: ["ollama", "local"],
|
||||
label: t`Ollama Cloud`,
|
||||
keywords: ["ollama", "cloud"],
|
||||
defaultBaseURL: AI_PROVIDER_DEFAULT_BASE_URLS.ollama,
|
||||
defaultModel: "llama3.1",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user