Delete config.py
Browse files
config.py
DELETED
|
@@ -1,43 +0,0 @@
|
|
| 1 |
-
# /config.py
|
| 2 |
-
""" Centralized configuration for the AnyCoder application. """
|
| 3 |
-
|
| 4 |
-
from typing import List, Dict, Union
|
| 5 |
-
|
| 6 |
-
# --- Search/Replace Constants ---
|
| 7 |
-
SEARCH_START = "<<<<<<< SEARCH"
|
| 8 |
-
DIVIDER = "======="
|
| 9 |
-
REPLACE_END = ">>>>>>> REPLACE"
|
| 10 |
-
|
| 11 |
-
# --- System Prompts ---
|
| 12 |
-
HTML_SYSTEM_PROMPT = """...""" # (Copy from your original file)
|
| 13 |
-
GENERIC_SYSTEM_PROMPT = """...""" # (Copy from your original file)
|
| 14 |
-
HTML_SYSTEM_PROMPT_WITH_SEARCH = """...""" # (Copy from your original file)
|
| 15 |
-
GENERIC_SYSTEM_PROMPT_WITH_SEARCH = """...""" # (Copy from your original file)
|
| 16 |
-
FollowUpSystemPrompt = f"""...""" # (Copy from your original file)
|
| 17 |
-
|
| 18 |
-
# --- Models & UI ---
|
| 19 |
-
AVAILABLE_MODELS: List[Dict[str, str]] = [
|
| 20 |
-
{"name": "OpenAI GPT-4o", "id": "openai/gpt-4o"},
|
| 21 |
-
{"name": "OpenAI GPT-4 Turbo", "id": "openai/gpt-4-turbo"},
|
| 22 |
-
{"name": "Groq Llama3 70b", "id": "groq/llama3-70b-8192"},
|
| 23 |
-
{"name": "Groq Mixtral 8x7b", "id": "groq/mixtral-8x7b-32768"},
|
| 24 |
-
{"name": "Google Gemini 1.5 Pro", "id": "gemini/gemini-1.5-pro-latest"},
|
| 25 |
-
{"name": "DeepSeek Coder V2", "id": "deepseek/deepseek-coder-v2-instruct"},
|
| 26 |
-
{"name": "Fireworks Firefunction V1", "id": "fireworks/accounts/fireworks/models/firefunction-v1"},
|
| 27 |
-
{"name": "HuggingFace ERNIE-VL", "id": "huggingface/baidu/ERNIE-4.5-VL-424B-A47B-Base-PT"},
|
| 28 |
-
{"name": "HuggingFace GLM-VL", "id": "huggingface/THUDM/GLM-4.1V-9B-Thinking"},
|
| 29 |
-
]
|
| 30 |
-
|
| 31 |
-
MULTIMODAL_MODELS: List[str] = [
|
| 32 |
-
"huggingface/baidu/ERNIE-4.5-VL-424B-A47B-Base-PT",
|
| 33 |
-
"huggingface/THUDM/GLM-4.1V-9B-Thinking",
|
| 34 |
-
]
|
| 35 |
-
|
| 36 |
-
DEMO_LIST: List[Dict[str, str]] = [...] # (Copy from your original file)
|
| 37 |
-
|
| 38 |
-
GRADIO_SUPPORTED_LANGUAGES: List[Union[str, None]] = [
|
| 39 |
-
"python", "c", "cpp", "markdown", "latex", "json", "html", "css", "javascript",
|
| 40 |
-
"jinja2", "typescript", "yaml", "dockerfile", "shell", "r", "sql", "sql-msSQL",
|
| 41 |
-
"sql-mySQL", "sql-mariaDB", "sql-sqlite", "sql-cassandra", "sql-plSQL", "sql-hive",
|
| 42 |
-
"sql-pgSQL", "sql-gql", "sql-gpSQL", "sql-sparkSQL", "sql-esper", None
|
| 43 |
-
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|