artistypl commited on
Commit
8933889
1 Parent(s): 3539cd3

Update chatllm.py

Browse files
Files changed (1) hide show
  1. chatllm.py +1 -1
chatllm.py CHANGED
@@ -98,7 +98,7 @@ class ChatLLM(LLM):
98
  "frequency_penalty":0
99
  }
100
 
101
- response = requests.post(url, headers=get_headers(OPENAI_API_KEY), json=payload)
102
  result = response.choice[0].text
103
 
104
  # 将当次的ai回复内容加入history
 
98
  "frequency_penalty":0
99
  }
100
 
101
+ response = requests.post(OPENAI_URL, headers=headers, json=payload)
102
  result = response.choice[0].text
103
 
104
  # 将当次的ai回复内容加入history