POST
/
proxy
/
{cache_type}
/
{version}
/
{path}
curl --request POST \
  --url https://api.ragbuddy.ai/proxy/{cache_type}/{version}/{path} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'helvia-rag-buddy-token: <helvia-rag-buddy-token>' \
  --data '{
  "prompt": "<string>",
  "model": "<string>"
}'
{
  "id": "<string>",
  "choices": [
    {
      "finish_reason": "stop",
      "index": 123,
      "logprobs": {
        "text_offset": [
          123
        ],
        "token_logprobs": [
          123
        ],
        "tokens": [
          "<string>"
        ],
        "top_logprobs": [
          {}
        ]
      },
      "text": "<string>"
    }
  ],
  "created": 123,
  "model": "<string>",
  "object": "<any>",
  "system_fingerprint": "<string>",
  "usage": {
    "completion_tokens": 123,
    "prompt_tokens": 123,
    "total_tokens": 123
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

helvia-rag-buddy-token
string
required

Path Parameters

cache_type
enum<string>
required
Available options:
ragc,
tc,
sem
version
string
required
path
string
required

Body

application/json
prompt
string
required
model
string
required

Response

200
application/json
Successful Response
id
string
required
choices
object[]
required
created
integer
required
model
string
required
object
any
required
system_fingerprint
string | null
usage
object | null