basePath: / definitions: handlers.HealthResponse: properties: config: properties: openai_backend: type: string port: type: string type: object database: type: string status: type: string type: object host: localhost:8000 info: contact: email: admin@optoant.local name: optoant description: OpenAI-compatible and Anthropic-compatible LLM proxy/gateway with Bifrost mapping. license: name: MIT url: https://opensource.org/licenses/MIT termsOfService: http://swagger.io/terms/ title: LLM Gateway API version: "1.0" paths: /anthropic/{path}: post: consumes: - application/json description: Converts Anthropic Messages API requests to OpenAI format, forwards to OPENAI_BACKEND, and converts the response back to Anthropic format. parameters: - description: Anthropic API path (e.g. v1/messages) in: path name: path required: true type: string produces: - application/json responses: "200": description: OK schema: additionalProperties: true type: object "400": description: Bad Request schema: additionalProperties: type: string type: object "502": description: Bad Gateway schema: additionalProperties: type: string type: object summary: Anthropic-compatible proxy tags: - anthropic /health: get: description: Returns service health status, database connectivity, and active configuration. produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/handlers.HealthResponse' summary: Health check tags: - health /v1/{path}: post: consumes: - application/json description: Forwards any /v1/* request to the configured OpenAI-compatible backend (e.g. DeepSeek). parameters: - description: OpenAI API path (e.g. chat/completions) in: path name: path required: true type: string produces: - application/json responses: "200": description: OK schema: additionalProperties: true type: object "502": description: Bad Gateway schema: additionalProperties: type: string type: object summary: OpenAI-compatible proxy tags: - openai securityDefinitions: BearerAuth: in: header name: Authorization type: apiKey swagger: "2.0"