xzyun2011 commited on
Commit
c12d400
·
1 Parent(s): 08d03ea

changed openai env

Browse files
Files changed (2) hide show
  1. agent/wulewule_agent.py +2 -2
  2. requirements.txt +1 -1
agent/wulewule_agent.py CHANGED
@@ -162,7 +162,7 @@ class MultiModalAssistant:
162
  if response.status_code == 200:
163
  self.audio_text = text
164
  print(f"文本已转为语音: {self.audio_save_file}")
165
- # return f"文本转语音已完成。"
166
  else:
167
  print("文本转语音失败,状态码:", response.status_code)
168
  except Exception as e:
@@ -203,7 +203,7 @@ class MultiModalAssistant:
203
  data = response.json()
204
  self.image_url = data['data'][0]['url']
205
  print(f"图像已生成: {self.image_url}")
206
- # return f"图像已生成。"
207
  # return f"图像已生成已完成。继续下一个任务"
208
  else:
209
  print("生成图像失败,状态码:", response.status_code)
 
162
  if response.status_code == 200:
163
  self.audio_text = text
164
  print(f"文本已转为语音: {self.audio_save_file}")
165
+ return f"文本转语音已完成。"
166
  else:
167
  print("文本转语音失败,状态码:", response.status_code)
168
  except Exception as e:
 
203
  data = response.json()
204
  self.image_url = data['data'][0]['url']
205
  print(f"图像已生成: {self.image_url}")
206
+ return f"图像已生成。"
207
  # return f"图像已生成已完成。继续下一个任务"
208
  else:
209
  print("生成图像失败,状态码:", response.status_code)
requirements.txt CHANGED
@@ -24,7 +24,7 @@ modelscope==1.18.0
24
  # numpy==1.26.4
25
  # pandas==2.2.2
26
  # timm==1.0.8
27
- openai==1.40.3
28
  # lmdeploy[all]==0.5.3
29
  hydra-core==1.3.2
30
  ## agent used
 
24
  # numpy==1.26.4
25
  # pandas==2.2.2
26
  # timm==1.0.8
27
+ openai==1.55.3
28
  # lmdeploy[all]==0.5.3
29
  hydra-core==1.3.2
30
  ## agent used