Chat completions
Chat-Based Text Generation
Parameters:
Example:
curl https://api.uniportai.site/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-4",
"messages": [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "What are the benefits of meditation?"}
]
}'Last updated
