Spaces:
Runtime error
Runtime error
Update chatllm.py
Browse filesfix bug: ChatCompletion
- 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.
|
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,
|