File size: 937 Bytes
aebf6db
 
 
 
 
 
4349024
 
 
326220d
 
 
 
 
 
 
 
 
 
949958d
aebf6db
 
 
 
 
c5964f7
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import os

from dotenv import load_dotenv

load_dotenv()

AGENT_MODEL = os.getenv("AGENT_MODEL", "Qwen/Qwen3-Next-80B-A3B-Thinking")
CHAT_MODEL = os.getenv("CHAT_MODEL", "Qwen/Qwen3-Next-80B-A3B-Thinking")

# GitHub MCP configuration
GITHUB_PAT = os.getenv("GITHUB_PAT", None)
if not GITHUB_PAT:
    print("⚠️ GitHub PAT not found in .env file!")

HF_TOKEN = os.getenv("HF_TOKEN", None)
if not HF_TOKEN:
    print("⚠️ Hugging Face token not found in .env file!")

GITHUB_TOOLSETS = os.getenv("GITHUB_TOOLSETS", "repos")
GITHUB_READ_ONLY = os.getenv("GITHUB_READ_ONLY", "1")

# Server configuration
GRADIO_SERVER_NAME = os.getenv("GRADIO_SERVER_NAME", "0.0.0.0")
GRADIO_SERVER_PORT = os.getenv("GRADIO_SERVER_PORT", "7860")
GRADIO_SHARE = os.getenv("GRADIO_SHARE", "False")

CHAT_HISTORY_TURNS_CUTOFF = int(os.getenv("CHAT_HISTORY_TURNS_CUTOFF", "10"))
CHAT_HISTORY_WORD_CUTOFF = int(os.getenv("CHAT_HISTORY_WORD_CUTOFF", "100"))