|
|
|
""" Centralized configuration for the AnyCoder application. """ |
|
|
|
from typing import List, Dict, Union |
|
|
|
|
|
SEARCH_START = "<<<<<<< SEARCH" |
|
DIVIDER = "=======" |
|
REPLACE_END = ">>>>>>> REPLACE" |
|
|
|
|
|
HTML_SYSTEM_PROMPT = """...""" |
|
GENERIC_SYSTEM_PROMPT = """...""" |
|
HTML_SYSTEM_PROMPT_WITH_SEARCH = """...""" |
|
GENERIC_SYSTEM_PROMPT_WITH_SEARCH = """...""" |
|
FollowUpSystemPrompt = f"""...""" |
|
|
|
|
|
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]] = [...] |
|
|
|
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 |
|
] |