Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions server/awesome_chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -1055,7 +1055,7 @@ def chat():
api_endpoint = data.get("api_endpoint", API_ENDPOINT)
api_type = data.get("api_type", API_TYPE)
if api_key is None or api_type is None or api_endpoint is None:
return jsonify({"error": "Please provide api_key, api_type and api_endpoint"})
return jsonify({"error": "Please provide an api_key, api_type, and api_endpoint"})
response = chat_huggingface(messages, api_key, api_type, api_endpoint)
return jsonify(response)
print("server running...")
Expand All @@ -1067,4 +1067,4 @@ def chat():
elif args.mode == "server":
server()
elif args.mode == "cli":
cli()
cli()