Spaces:
Sleeping
Sleeping
Zephyr LLM Connected to ChatBot
Browse files14 unmodified lines1516171819202114 unmodified linesmessages.extend(history)#adds multiple value + types rather than just onemessages.append("{"role": "user", "content": message})response = client.chat_completion(messages, max_tokens=0)print(response)return response['choices'][0]['message']['content'].strip()14 unmodified lines1516171819202114 unmodified linesmessages.extend(history)#adds multiple value + types rather than just onemessages.append("{"role": "user", "content": message})response = client.chat_completion(messages, max_tokens=100)print(response)return response['choices'][0]['message']['content'].strip()
app.py+1-1