We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbd1592 commit 2e218b2Copy full SHA for 2e218b2
llm/src/client.ts
@@ -5,6 +5,8 @@ type PartialCallback = (text: string) => void;
5
let llmApiUrl = typeof globalThis.location !== "undefined"
6
? globalThis.location.protocol + "//" + globalThis.location.host +
7
"/api/ai/llm"
8
+ : Deno?.env.get("TOOLSHED_API_URL")
9
+ ? new URL("/api/ai/llm", Deno.env.get("TOOLSHED_API_URL")!).toString()
10
: "//api/ai/llm";
11
12
export const setLLMUrl = (toolshedUrl: string) => {
0 commit comments