isididiidid commited on
Commit
044497b
·
verified ·
1 Parent(s): 4d49c3c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -6
app.py CHANGED
@@ -45,17 +45,24 @@ TOKEN_INDEX = 0
45
 
46
  # 模型映射表
47
  MODEL_MAPPING = {
48
- "gpt-3.5-turbo": "anthropic/claude-3.5-sonnet",
49
- "gpt-4": "anthropic/claude-3.7-sonnet",
50
- "gpt-4o": "openai/gpt-4o",
51
- "gpt-4-turbo": "openai/gpt-4o",
52
  "gpt-4o-mini": "openai/gpt-4o-mini",
53
- "claude-3-sonnet-20240229": "anthropic/claude-3.5-sonnet",
54
- "claude-3-opus-20240229": "anthropic/claude-3.7-sonnet",
 
55
  "claude-3.5-sonnet": "anthropic/claude-3.5-sonnet",
56
  "claude-3.7-sonnet": "anthropic/claude-3.7-sonnet",
 
 
 
 
 
 
 
 
 
57
  }
58
 
 
59
  # 请求头
60
  def get_headers(api_key):
61
  global TOKEN_INDEX
 
45
 
46
  # 模型映射表
47
  MODEL_MAPPING = {
 
 
 
 
48
  "gpt-4o-mini": "openai/gpt-4o-mini",
49
+ "gpt-4o": "openai/gpt-4o",
50
+ "o1": "openai/o1",
51
+ "o3-mini": "openai/o3-mini", # Fixed the typo in "oopenai/o3-mini"
52
  "claude-3.5-sonnet": "anthropic/claude-3.5-sonnet",
53
  "claude-3.7-sonnet": "anthropic/claude-3.7-sonnet",
54
+ "grok-3": "x-ai/grok-3",
55
+ "grok-3-reasoner": "x-ai/grok-3-reasoner",
56
+ "deepseek-v3": "deepseek/deepseek-chat",
57
+ "deepseek-r1": "deepseek/deepseek-r1",
58
+ "gemini-2.0-flash": "google/gemini-2.0-flash",
59
+ "gemini-2.0-pro-exp": "google/gemini-2.0-pro-exp-02-05",
60
+ "gemini-2.0-flash-thinking-exp": "google/gemini-2.0-flash-thinking-exp-1219",
61
+ "qwq-32b": "qwen/qwq-32b",
62
+ "qwen-max": "qwen/qwen-max"
63
  }
64
 
65
+
66
  # 请求头
67
  def get_headers(api_key):
68
  global TOKEN_INDEX