artistypl commited on
Commit
e305e3d
1 Parent(s): f84c7db

Update chatllm.py

Browse files

fix bug: ChatCompletion

Files changed (1) hide show
  1. chatllm.py +1 -1
chatllm.py CHANGED
@@ -81,7 +81,7 @@ class ChatLLM(LLM):
81
 
82
  # 配置OPENAI模型参数
83
  openai.api_key = os.getenv('openai_api_key')
84
- response = openai.Completion.create(
85
  model = 'gpt-3.5-turbo',
86
  messages = messages,
87
  temperature = self.temperature,
 
81
 
82
  # 配置OPENAI模型参数
83
  openai.api_key = os.getenv('openai_api_key')
84
+ response = openai.ChatCompletion.create(
85
  model = 'gpt-3.5-turbo',
86
  messages = messages,
87
  temperature = self.temperature,