Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
added env AI_URL which allows you to use local toolshed but point the…
… AI endpoints to another environment
  • Loading branch information
Ellyse committed Mar 5, 2025
commit 21d97660a8a67fe69c6e5b23045761315c61be66
24 changes: 18 additions & 6 deletions typescript/packages/jumble/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ export default defineConfig({
changeOrigin: true,
},
"/api/ai/spell/": {
target: Deno.env.get("TOOLSHED_API_URL") ?? "http://localhost:8000/",
target: Deno.env.get("AI_URL") ??
Deno.env.get("TOOLSHED_API_URL") ??
"http://localhost:8000/",
changeOrigin: true,
},
"/api/spellbook": {
Expand All @@ -32,23 +34,33 @@ export default defineConfig({
changeOrigin: true,
},
"/api/ai/llm": {
target: Deno.env.get("TOOLSHED_API_URL") ?? "http://localhost:8000/",
target: Deno.env.get("AI_URL") ??
Deno.env.get("TOOLSHED_API_URL") ??
"http://localhost:8000/",
changeOrigin: true,
},
"/api/ai/img": {
target: Deno.env.get("TOOLSHED_API_URL") ?? "http://localhost:8000/",
target: Deno.env.get("AI_URL") ??
Deno.env.get("TOOLSHED_API_URL") ??
"http://localhost:8000/",
changeOrigin: true,
},
"/api/ai/voice": {
target: Deno.env.get("TOOLSHED_API_URL") ?? "http://localhost:8000/",
target: Deno.env.get("AI_URL") ??
Deno.env.get("TOOLSHED_API_URL") ??
"http://localhost:8000/",
changeOrigin: true,
},
"/api/ai/webreader": {
target: Deno.env.get("TOOLSHED_API_URL") ?? "http://localhost:8000/",
target: Deno.env.get("AI_URL") ??
Deno.env.get("TOOLSHED_API_URL") ??
"http://localhost:8000/",
changeOrigin: true,
},
"/api/storage/blobby": {
target: Deno.env.get("TOOLSHED_API_URL") ?? "http://localhost:8000/",
target: Deno.env.get("MEMORY_URL") ??
Deno.env.get("TOOLSHED_API_URL") ??
"http://localhost:8000/",
changeOrigin: true,
},
"/api/storage/memory": {
Expand Down
Loading