Openai

Openai Proxy Route

Simple pass-through for OpenAI. Use this if you want to directly send a request to OpenAI.

GET/openai/{endpoint}
Authorization
Path parameters
endpoint*Endpoint
Response

Successful Response

Body
any
Request
const response = await fetch('/openai/{endpoint}', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "detail": [
    {
      "loc": [
        "text"
      ],
      "msg": "text",
      "type": "text"
    }
  ]
}

Openai Proxy Route

Simple pass-through for OpenAI. Use this if you want to directly send a request to OpenAI.

POST/openai/{endpoint}
Authorization
Path parameters
endpoint*Endpoint
Response

Successful Response

Body
any
Request
const response = await fetch('/openai/{endpoint}', {
    method: 'POST',
    headers: {},
});
const data = await response.json();
Response
{
  "detail": [
    {
      "loc": [
        "text"
      ],
      "msg": "text",
      "type": "text"
    }
  ]
}

Openai Proxy Route

Simple pass-through for OpenAI. Use this if you want to directly send a request to OpenAI.

PUT/openai/{endpoint}
Authorization
Path parameters
endpoint*Endpoint
Response

Successful Response

Body
any
Request
const response = await fetch('/openai/{endpoint}', {
    method: 'PUT',
    headers: {},
});
const data = await response.json();
Response
{
  "detail": [
    {
      "loc": [
        "text"
      ],
      "msg": "text",
      "type": "text"
    }
  ]
}

Openai Proxy Route

Simple pass-through for OpenAI. Use this if you want to directly send a request to OpenAI.

DELETE/openai/{endpoint}
Authorization
Path parameters
endpoint*Endpoint
Response

Successful Response

Body
any
Request
const response = await fetch('/openai/{endpoint}', {
    method: 'DELETE',
    headers: {},
});
const data = await response.json();
Response
{
  "detail": [
    {
      "loc": [
        "text"
      ],
      "msg": "text",
      "type": "text"
    }
  ]
}

Openai Proxy Route

Simple pass-through for OpenAI. Use this if you want to directly send a request to OpenAI.

PATCH/openai/{endpoint}
Authorization
Path parameters
endpoint*Endpoint
Response

Successful Response

Body
any
Request
const response = await fetch('/openai/{endpoint}', {
    method: 'PATCH',
    headers: {},
});
const data = await response.json();
Response
{
  "detail": [
    {
      "loc": [
        "text"
      ],
      "msg": "text",
      "type": "text"
    }
  ]
}