"test/vscode:/vscode.git/clone" did not exist on "25846551e890dfb67e5e6a371808f9f93eaddcd9"
config.py 360 Bytes
Newer Older
Timothy J. Baek's avatar
Timothy J. Baek committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import sys
import os
from dotenv import load_dotenv, find_dotenv

load_dotenv(find_dotenv())

ENV = os.environ.get("ENV", "dev")

OLLAMA_API_BASE_URL = os.environ.get(
    "OLLAMA_API_BASE_URL", "http://localhost:11434/api"
)

if ENV == "prod":
    if OLLAMA_API_BASE_URL == "/ollama/api":
        OLLAMA_API_BASE_URL = "http://host.docker.internal:11434/api"