cURL
curl --request POST \ --url https://api.ragbuddy.ai/tc/{version} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'helvia-rag-buddy-token: <helvia-rag-buddy-token>' \ --data '{ "remote_llm_url": "<string>", "user_message": "<string>", "system_instructions": "<string>" }'
{ "id": "<string>", "choices": [ { "finish_reason": "stop", "index": 123, "message": { "content": "<string>", "role": "<any>", "function_call": { "arguments": "<string>", "name": "<string>" }, "tool_calls": [ { "id": "<string>", "function": { "arguments": "<string>", "name": "<string>" }, "type": "<any>" } ] } } ], "created": 123, "model": "<string>", "object": "<any>", "system_fingerprint": "<string>", "usage": { "completion_tokens": 123, "prompt_tokens": 123, "total_tokens": 123 } }
RAG-Buddy API endpoint for the Text-Classification use case.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Version of the API to use
"v1"
Successful Response
The response is of type object.
object