{ "openapi": "3.1.0", "info": { "title": "Mantler API", "version": "0.1.0" }, "components": { "schemas": {}, "parameters": {} }, "paths": { "/v1/models": { "get": { "tags": ["Models"], "responses": { "200": { "description": "List models", "content": { "application/json": { "schema": { "type": "object", "properties": { "object": { "type": "string", "enum": ["list"] }, "data": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "object": { "type": "string", "enum": ["model"] }, "created": { "type": "integer" }, "owned_by": { "type": "string" }, "permission": { "type": "array", "items": {} } }, "required": ["id", "object", "created", "owned_by", "permission"] } } }, "required": ["object", "data"] } } } } } } }, "/v1/chat/completions": { "post": { "tags": ["Completions"], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "model": { "type": "string", "minLength": 1 } }, "required": ["model"], "additionalProperties": {} } } } }, "responses": { "200": { "description": "Proxied completion response" } } } }, "/v1/completions": { "post": { "tags": ["Completions"], "responses": { "400": { "description": "Unsupported endpoint", "content": { "application/json": { "schema": { "type": "object", "properties": { "error": { "type": "object", "properties": { "message": { "type": "string" }, "type": { "type": "string" }, "code": { "type": ["string", "null"] } }, "required": ["message", "type"] } }, "required": ["error"] } } } } } } } }, "webhooks": {} }