more docker fixes
This commit is contained in:
parent
e2bd322814
commit
c4eebafff6
4 changed files with 9 additions and 10 deletions
3
frontend/.vscode/extensions.json
vendored
3
frontend/.vscode/extensions.json
vendored
|
|
@ -1,3 +0,0 @@
|
|||
{
|
||||
"recommendations": ["svelte.svelte-vscode"]
|
||||
}
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
const API = "http://localhost:8000"; // change if needed
|
||||
const API = import.meta.env.CHATSBT_API_URL || "";
|
||||
|
||||
export async function createChat(model = "qwen/qwen3-235b-a22b-2507") {
|
||||
const r = await fetch(`${API}/chats`, {
|
||||
|
|
@ -29,7 +29,7 @@ export async function fetchModels() {
|
|||
const data = await response.json();
|
||||
return data.models || [];
|
||||
} catch (error) {
|
||||
console.error('Failed to fetch models:', error);
|
||||
console.error("Failed to fetch models:", error);
|
||||
return [];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue