File size: 1,975 Bytes
f60d626 de11970 f60d626 de11970 f60d626 de11970 f60d626 de11970 f60d626 8f9bbf1 f60d626 8f9bbf1 f60d626 de11970 f60d626 de11970 f22daae |
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 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# /config.py
""" Centralized configuration for the AnyCoder application. """
from typing import List, Dict, Union
# --- Search/Replace Constants ---
SEARCH_START = "<<<<<<< SEARCH"
DIVIDER = "======="
REPLACE_END = ">>>>>>> REPLACE"
# --- System Prompts ---
HTML_SYSTEM_PROMPT = """...""" # (Copy from your original file)
GENERIC_SYSTEM_PROMPT = """...""" # (Copy from your original file)
HTML_SYSTEM_PROMPT_WITH_SEARCH = """...""" # (Copy from your original file)
GENERIC_SYSTEM_PROMPT_WITH_SEARCH = """...""" # (Copy from your original file)
FollowUpSystemPrompt = f"""...""" # (Copy from your original file)
# --- Models & UI ---
AVAILABLE_MODELS: List[Dict[str, str]] = [
{"name": "OpenAI GPT-4o", "id": "openai/gpt-4o"},
{"name": "OpenAI GPT-4 Turbo", "id": "openai/gpt-4-turbo"},
{"name": "Groq Llama3 70b", "id": "groq/llama3-70b-8192"},
{"name": "Groq Mixtral 8x7b", "id": "groq/mixtral-8x7b-32768"},
{"name": "Google Gemini 1.5 Pro", "id": "gemini/gemini-1.5-pro-latest"},
{"name": "DeepSeek Coder V2", "id": "deepseek/deepseek-coder-v2-instruct"},
{"name": "Fireworks Firefunction V1", "id": "fireworks/accounts/fireworks/models/firefunction-v1"},
{"name": "HuggingFace ERNIE-VL", "id": "huggingface/baidu/ERNIE-4.5-VL-424B-A47B-Base-PT"},
{"name": "HuggingFace GLM-VL", "id": "huggingface/THUDM/GLM-4.1V-9B-Thinking"},
]
MULTIMODAL_MODELS: List[str] = [
"huggingface/baidu/ERNIE-4.5-VL-424B-A47B-Base-PT",
"huggingface/THUDM/GLM-4.1V-9B-Thinking",
]
DEMO_LIST: List[Dict[str, str]] = [...] # (Copy from your original file)
GRADIO_SUPPORTED_LANGUAGES: List[Union[str, None]] = [
"python", "c", "cpp", "markdown", "latex", "json", "html", "css", "javascript",
"jinja2", "typescript", "yaml", "dockerfile", "shell", "r", "sql", "sql-msSQL",
"sql-mySQL", "sql-mariaDB", "sql-sqlite", "sql-cassandra", "sql-plSQL", "sql-hive",
"sql-pgSQL", "sql-gql", "sql-gpSQL", "sql-sparkSQL", "sql-esper", None
] |