{
  "/completions": {
    "description": null,
    "args": {
      "request": {
        "type": {
          "type": "model",
          "name": "CompletionRequest",
          "schema": {
            "$defs": {
              "GenerationOptions": {
                "description": "Options that control the text generation process.",
                "properties": {
                  "maxTokens": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null,
                    "title": "Maxtokens"
                  },
                  "temperature": {
                    "anyOf": [
                      {
                        "maximum": 2.0,
                        "minimum": 0.0,
                        "type": "number"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null,
                    "title": "Temperature"
                  },
                  "topP": {
                    "anyOf": [
                      {
                        "maximum": 1.0,
                        "minimum": 0.0,
                        "type": "number"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null,
                    "title": "Topp"
                  },
                  "stopSequences": {
                    "anyOf": [
                      {
                        "items": {
                          "type": "string"
                        },
                        "type": "array"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null,
                    "title": "Stopsequences"
                  },
                  "logprobs": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null,
                    "title": "Logprobs"
                  },
                  "topLogprobs": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null,
                    "title": "Toplogprobs"
                  },
                  "extensions": {
                    "anyOf": [
                      {
                        "additionalProperties": true,
                        "type": "object"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null,
                    "description": "Container for specification extensions",
                    "title": "Extensions"
                  }
                },
                "title": "GenerationOptions",
                "type": "object"
              }
            },
            "description": "Completion request model.",
            "properties": {
              "model": {
                "title": "Model",
                "type": "string"
              },
              "prompt": {
                "title": "Prompt",
                "type": "string"
              },
              "options": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/GenerationOptions"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null
              }
            },
            "required": [
              "model",
              "prompt"
            ],
            "title": "CompletionRequest",
            "type": "object"
          }
        },
        "required": true
      }
    },
    "returns": "union"
  },
  "/chat": {
    "description": null,
    "args": {
      "request": {
        "type": {
          "type": "model",
          "name": "ChatRequest",
          "schema": {
            "$defs": {
              "GenerationOptions": {
                "description": "Options that control the text generation process.",
                "properties": {
                  "maxTokens": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null,
                    "title": "Maxtokens"
                  },
                  "temperature": {
                    "anyOf": [
                      {
                        "maximum": 2.0,
                        "minimum": 0.0,
                        "type": "number"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null,
                    "title": "Temperature"
                  },
                  "topP": {
                    "anyOf": [
                      {
                        "maximum": 1.0,
                        "minimum": 0.0,
                        "type": "number"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null,
                    "title": "Topp"
                  },
                  "stopSequences": {
                    "anyOf": [
                      {
                        "items": {
                          "type": "string"
                        },
                        "type": "array"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null,
                    "title": "Stopsequences"
                  },
                  "logprobs": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null,
                    "title": "Logprobs"
                  },
                  "topLogprobs": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null,
                    "title": "Toplogprobs"
                  },
                  "extensions": {
                    "anyOf": [
                      {
                        "additionalProperties": true,
                        "type": "object"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null,
                    "description": "Container for specification extensions",
                    "title": "Extensions"
                  }
                },
                "title": "GenerationOptions",
                "type": "object"
              },
              "Message": {
                "description": "A message in a conversation between user and assistant.",
                "properties": {
                  "role": {
                    "$ref": "#/$defs/Role"
                  },
                  "content": {
                    "title": "Content",
                    "type": "string"
                  },
                  "name": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null,
                    "title": "Name"
                  }
                },
                "required": [
                  "role",
                  "content"
                ],
                "title": "Message",
                "type": "object"
              },
              "Role": {
                "description": "Defines the role of the message author in a conversation.",
                "enum": [
                  "system",
                  "user",
                  "assistant"
                ],
                "title": "Role",
                "type": "string"
              }
            },
            "description": "Chat request model.",
            "properties": {
              "model": {
                "title": "Model",
                "type": "string"
              },
              "messages": {
                "items": {
                  "$ref": "#/$defs/Message"
                },
                "title": "Messages",
                "type": "array"
              },
              "options": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/GenerationOptions"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null
              }
            },
            "required": [
              "model",
              "messages"
            ],
            "title": "ChatRequest",
            "type": "object"
          }
        },
        "required": true
      }
    },
    "returns": "union"
  },
  "/retrieve": {
    "description": "Handle a document retrieval request.",
    "args": {
      "request": {
        "type": {
          "type": "model",
          "name": "DocumentRetrievalRequest",
          "schema": {
            "$defs": {
              "RetrievalOptions": {
                "description": "Options for controlling document retrieval process",
                "properties": {
                  "limit": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null,
                    "description": "Maximum number of documents to retrieve",
                    "title": "Limit"
                  },
                  "similarityThreshold": {
                    "anyOf": [
                      {
                        "maximum": 1,
                        "minimum": 0,
                        "type": "number"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null,
                    "description": "Minimum similarity score for retrieved documents",
                    "title": "Similaritythreshold"
                  },
                  "includeMetadata": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null,
                    "description": "Whether to include document metadata in results",
                    "title": "Includemetadata"
                  },
                  "includeEmbeddings": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null,
                    "description": "Whether to include vector embeddings in results",
                    "title": "Includeembeddings"
                  },
                  "extensions": {
                    "anyOf": [
                      {
                        "additionalProperties": true,
                        "type": "object"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null,
                    "description": "Container for retriever-specific extensions",
                    "title": "Extensions"
                  }
                },
                "title": "RetrievalOptions",
                "type": "object"
              }
            },
            "description": "Document retrieval request model.",
            "properties": {
              "query": {
                "title": "Query",
                "type": "string"
              },
              "options": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/RetrievalOptions"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null
              }
            },
            "required": [
              "query"
            ],
            "title": "DocumentRetrievalRequest",
            "type": "object"
          }
        },
        "required": true
      }
    },
    "returns": "union"
  },
  "/ping": {
    "description": "Ping the server.",
    "args": {},
    "returns": "str"
  }
}