stzhao commited on
Commit
564b48a
·
verified ·
1 Parent(s): abe8694

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -104,7 +104,7 @@ def call_chatgpt_api(model_name, messages, client, max_tokens=10000, stop=None,
104
  """Call ChatGPT API with the given messages"""
105
  try:
106
  response = client.chat.completions.create(
107
- model="gpt-4.1", # 使用支持视觉的模型
108
  messages=messages,
109
  max_tokens=max_tokens,
110
  temperature=temperature,
 
104
  """Call ChatGPT API with the given messages"""
105
  try:
106
  response = client.chat.completions.create(
107
+ model=model_name, # 使用支持视觉的模型
108
  messages=messages,
109
  max_tokens=max_tokens,
110
  temperature=temperature,