more docker fixes

This commit is contained in:
Sebarocks 2025-07-31 22:50:03 -04:00
parent e2bd322814
commit c4eebafff6
4 changed files with 9 additions and 10 deletions

View file

@ -1,3 +0,0 @@
{
"recommendations": ["svelte.svelte-vscode"]
}

View file

@ -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 [];
}
}