feat: modelfile builder

This commit is contained in:
Timothy J. Baek 2023-12-02 16:05:01 -08:00
parent 1c0cc16f8c
commit 45ff3ae204
5 changed files with 640 additions and 105 deletions

View file

@ -3,9 +3,7 @@ import { PUBLIC_API_BASE_URL } from '$env/static/public';
export const OLLAMA_API_BASE_URL =
PUBLIC_API_BASE_URL === ''
? dev
? `http://${location.hostname}:8080/ollama/api`
: browser
? browser
? `http://${location.hostname}:11434/api`
: `http://localhost:11434/api`
: PUBLIC_API_BASE_URL;