Chat Completion
Following the standard set by OpenAI we're in the process of migrating from Chat Completion to Response.
Chat completion by Reigent.
URL:
/rei/agents/chat-completionMethod:
POSTHeaders:
KeyValueAuthorization
Bearer rei-agent-secret-token
Request:
{
"messages": [
{
"role": "user",
"content": "Hello, can you help me with my research?"
}
],
"tools": [
{
"type": "function",
"function": {
"name": "get_weather",
"description": "Get current temperature of given location",
"parameters": {
"type": "object",
"properties": {
"location": {
"type": "string",
"description": "City and country (e.g. Paris, France)"
}
},
"required": ["location"],
"additionalProperties": false
},
"strict": true
}
}
]
};Response:
without tools
with tools
Error
Response Code
Reason
401
Unauthorized
404
Agent not found
Last updated