artistypl commited on
Commit
64b16ac
1 Parent(s): fad85ed

Update chatllm.py

Browse files

fix bug:open_key changed

Files changed (1) hide show
  1. chatllm.py +1 -1
chatllm.py CHANGED
@@ -76,7 +76,7 @@ class ChatLLM(LLM):
76
  OPENAI_URL = "https://api.openai.com/v1/chat/completions"
77
 
78
  headers = {
79
- "Authorization": f"Bearer {api_key}",
80
  "Content-Type": "application/json"
81
  }
82
 
 
76
  OPENAI_URL = "https://api.openai.com/v1/chat/completions"
77
 
78
  headers = {
79
+ "Authorization": f"Bearer {OPENAI_API_KEY}",
80
  "Content-Type": "application/json"
81
  }
82