Closed Barqawiz closed 1 year ago
Reference: The chat function details:
curl --location --request POST 'https://api.cohere.ai/v1/chat' \ --header 'Authorization: Bearer Dn5n4N84HPI8fBAJJM1BTMz435dad7mHpJEoKLvn' \ --header 'Content-Type: application/json' \ --data-raw '{ "model": "command-nightly", "message": "<YOUR MESSAGE HERE>", "temperature": 0.3, "chat_history": [], "prompt_truncation": "auto", "stream": true, "citation_quality": "accurate", "connectors": [{"id": "web-search"}] }'
Reference: The chat function details: