You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 18, 2024. It is now read-only.
Looks like the environment variables exists...
Discord Token environment variable is valid
Traceback (most recent call last):
File "/workspaces/Discord-AI-Chatbot/main.py", line 77, in <module>
chat_models = fetch_chat_models()
File "/workspaces/Discord-AI-Chatbot/main.py", line 67, in fetch_chat_models
models.extend(
File "/workspaces/Discord-AI-Chatbot/main.py", line 70, in <genexpr>
if "chat" in model['endpoints'][0]
KeyError: 'endpoints'
The text was updated successfully, but these errors were encountered:
I have temporarily fixed the issue by removing if "chat" in model['endpoints'][0] from
if response.status_code == 200:
ModelsData = response.json()
models.extend(
model['id']
for model in ModelsData.get('data')
if "chat" in model['endpoints'][0] <--- THIS LINE (Line no. 70)
)
I got this error. Please help me to fix this.
The text was updated successfully, but these errors were encountered: