Spaces:
Runtime error
Runtime error
Update chatllm.py
Browse filesfix bug:open_key changed
- 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 {
|
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 |
|