From 1caa45266c0d5be24e3b9c63b5e10cd8aa2debd7 Mon Sep 17 00:00:00 2001 From: Darren Reid Date: Fri, 18 Oct 2024 09:57:22 +1100 Subject: [PATCH 1/2] Simpler example.env --- example.env | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/example.env b/example.env index b138c50..7759ed9 100644 --- a/example.env +++ b/example.env @@ -1,12 +1,6 @@ -# OpenAI API Key - Head to https://platform.openai.com/account/api-keys to get your API key -# OPENAI_API_KEY=your-openai-api-key -# Google Cloud API Key - Head to https://console.cloud.google.com/apis/credentials to get your API key -# GOOGLE_API_KEY=your-google-api-key -# OpenRouter API Key - Head to https://openrouter.io/ to get your API key -# OPENROUTER_API_KEY=your-openrouter-api-key -# Mistral API Key - Head to https://mistral.ai/ to get your API key -# MISTRAL_API_KEY=your-mistral-api-key -# GROQ API Key - Head to https://groq.com/ to get your API key -# GROQ_API_KEY=your-groq-api-key -# Custom Port for the AI Server -PORT=5005 \ No newline at end of file +OPENAI_API_KEY=your-openai-api-key +GOOGLE_API_KEY=your-google-api-key +OPENROUTER_API_KEY=your-openrouter-api-key +MISTRAL_API_KEY=your-mistral-api-key +GROQ_API_KEY=your-groq-api-key +PORT=5005 From 0fc572b05841629611e9129f2c2f04fdefd040fe Mon Sep 17 00:00:00 2001 From: Darren Reid Date: Fri, 18 Oct 2024 10:21:14 +1100 Subject: [PATCH 2/2] Fix seed data so imports work. --- AiServer/seed/ai-providers.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/AiServer/seed/ai-providers.json b/AiServer/seed/ai-providers.json index 6cb99c8..9e46959 100644 --- a/AiServer/seed/ai-providers.json +++ b/AiServer/seed/ai-providers.json @@ -2,7 +2,7 @@ { "id": 1, "name": "openrouter", - "apiTypeId": 2, + "aiTypeId": "OpenRouter", "apiKeyVar": "OPENROUTER_API_KEY", "HeartbeatUrl": "https://openrouter.ai/api/v1/auth/key", "concurrency": 1, @@ -101,7 +101,7 @@ { "id": 2, "name": "openrouter-free", - "apiTypeId": 3, + "aiTypeId": "OpenRouter Free", "apiKeyVar": "OPENROUTER_API_KEY", "concurrency": 1, "priority": 1, @@ -139,7 +139,7 @@ { "id": 3, "name": "openai", - "apiTypeId": 4, + "aiTypeId": "Open AI", "apiKeyVar": "OPENAI_API_KEY", "concurrency": 1, "priority": 0, @@ -168,7 +168,7 @@ { "id": 4, "name": "mistral", - "apiTypeId": 5, + "aiTypeId": "Mistral AI", "apiKeyVar": "MISTRAL_API_KEY", "concurrency": 1, "priority": 0, @@ -200,7 +200,7 @@ { "id": 5, "name": "google", - "apiTypeId": 6, + "aiTypeId": "Google Cloud", "apiKeyVar": "GOOGLE_API_KEY", "concurrency": 1, "priority": 0, @@ -223,7 +223,7 @@ { "id": 6, "name": "groq", - "apiTypeId": 7, + "aiTypeId": "GroqCloud", "apiKeyVar": "GROQ_API_KEY", "concurrency": 1, "priority": 2,