mckaywrigley/chatbot-ui

Tools does not support POST method

Opened this issue · 0 comments

Althrough I defined tool with method POST, the assistant will request with method GET.

And if I set multi operationId with different method under one location, there will be only one operationId left.

{
    "openapi": "3.1.0",
    "info": {
      "title": "Get or Set weather data",
      "description": "Retrieves or Set current weather data for a location.",
      "version": "v1.0.0"
    },
    "servers": [
      {
        "url": "https://webhook.mlops.dp.tech/a56cd4b0-22b3-4e43-a83c-4cbd3ad16709"
      }
    ],
    "paths": {
      "/location": {
        "get": {
          "description": "Get temperature for a specific location",
          "operationId": "GetCurrentWeather",
          "parameters": [
            {
              "name": "location",
              "in": "query",
              "description": "The city and state to retrieve the weather for",
              "required": true,
              "schema": {
                "type": "string"
              }
            }
          ],
          "deprecated": false
        },
        "post": {
            "description": "Set temperature for a specific location",
            "operationId": "SetCurrentWeather",
            "requestBody": {
              "content": {
                "application/json": {
                  "schema": {
                    "type": "object",
                    "properties": {
                      "location": {
                        "type": "string"
                      },
                      "temperature": {
                        "type": "number"
                      }
                    }
                  }
                }
              }
            },
            "deprecated": false
            }
        }
    },
    "components": {
      "schemas": {}
    }
  }