LLM

Proxy to OpenAI-Compatible Chat Completions

Proxy requests to OpenAI-compatible chat completions APIs and return the full response payload. Supports multiple providers via model parameter format: "model_name" (defaults to OpenAI), "provider/model_name", or "provider:model_name". Works with providers that offer OpenAI-compatible endpoints.

post/api/llm/openai/chat/completions

Request body

modelstring required

Model identifier in format "provider/model-name" (e.g., "openai/gpt-4")

Response

{"stackTrail":"paths:/api/llm/openai/chat/completions:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown","description":"Chat completion response"}

Changes

Changed in 1 of the 101 revisions of this API.86

    • request body became required

      request-body-became-required

    • added ChatMessageRoleEnum to the messages/items/role request property allOf list

      request-property-all-of-added

    • removed the enum value assistant of the request property messages/items/role

      request-property-enum-value-removed

    • removed the enum value system of the request property messages/items/role

      request-property-enum-value-removed

    • removed the enum value user of the request property messages/items/role

      request-property-enum-value-removed

    • the model request property's minLength was increased from 0 to 1

      request-property-min-length-increased

    • the messages/items/content request property type/format changed from string/ to /

      request-property-type-changed

    • the messages/items/role request property type/format changed from string/ to /

      request-property-type-changed

    • added the new optional request property messages/items/tool_call_id

      new-optional-request-property

    • added the new optional request property messages/items/tool_calls

      new-optional-request-property

    • added the media type application/x-www-form-urlencoded to the request body

      request-body-media-type-added

    • added the media type multipart/form-data to the request body

      request-body-media-type-added

    • the request property messages/items/content became nullable

      request-property-became-nullable

    • the request property messages/items/content became optional

      request-property-became-optional

    This revision also has 7 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

Of the 101 revisions, 1 has no diff computed.