diff --git a/swagger/docs.go b/swagger/docs.go index d5ffbc09..9a5a1784 100644 --- a/swagger/docs.go +++ b/swagger/docs.go @@ -700,18 +700,6 @@ const docTemplate = `{ } } }, - "functions.Argument": { - "type": "object", - "properties": { - "properties": { - "type": "object", - "additionalProperties": true - }, - "type": { - "type": "string" - } - } - }, "functions.Function": { "type": "object", "properties": { @@ -727,48 +715,19 @@ const docTemplate = `{ } } }, - "functions.FunctionName": { - "type": "object", - "properties": { - "const": { - "type": "string" - } - } - }, - "functions.FunctionProperties": { - "type": "object", - "properties": { - "arguments": { - "$ref": "#/definitions/functions.Argument" - }, - "function": { - "$ref": "#/definitions/functions.FunctionName" - } - } - }, - "functions.ItemFunction": { + "functions.Item": { "type": "object", "properties": { "properties": { - "$ref": "#/definitions/functions.FunctionProperties" + "type": "object", + "additionalProperties": true }, "type": { "type": "string" } } }, - "functions.ItemName": { - "type": "object", - "properties": { - "properties": { - "$ref": "#/definitions/functions.NameProperties" - }, - "type": { - "type": "string" - } - } - }, - "functions.JSONFunctionStructureFunction": { + "functions.JSONFunctionStructure": { "type": "object", "properties": { "$defs": { @@ -778,49 +737,17 @@ const docTemplate = `{ "anyOf": { "type": "array", "items": { - "$ref": "#/definitions/functions.ItemFunction" + "$ref": "#/definitions/functions.Item" } }, "oneOf": { "type": "array", "items": { - "$ref": "#/definitions/functions.ItemFunction" + "$ref": "#/definitions/functions.Item" } } } }, - "functions.JSONFunctionStructureName": { - "type": "object", - "properties": { - "$defs": { - "type": "object", - "additionalProperties": true - }, - "anyOf": { - "type": "array", - "items": { - "$ref": "#/definitions/functions.ItemName" - } - }, - "oneOf": { - "type": "array", - "items": { - "$ref": "#/definitions/functions.ItemName" - } - } - } - }, - "functions.NameProperties": { - "type": "object", - "properties": { - "arguments": { - "$ref": "#/definitions/functions.Argument" - }, - "name": { - "$ref": "#/definitions/functions.FunctionName" - } - } - }, "functions.Tool": { "type": "object", "properties": { @@ -1488,10 +1415,7 @@ const docTemplate = `{ "type": "string" }, "grammar_json_functions": { - "$ref": "#/definitions/functions.JSONFunctionStructureFunction" - }, - "grammar_json_name": { - "$ref": "#/definitions/functions.JSONFunctionStructureName" + "$ref": "#/definitions/functions.JSONFunctionStructure" }, "ignore_eos": { "type": "boolean" diff --git a/swagger/swagger.json b/swagger/swagger.json index 71feb8bb..9d53fbbe 100644 --- a/swagger/swagger.json +++ b/swagger/swagger.json @@ -693,18 +693,6 @@ } } }, - "functions.Argument": { - "type": "object", - "properties": { - "properties": { - "type": "object", - "additionalProperties": true - }, - "type": { - "type": "string" - } - } - }, "functions.Function": { "type": "object", "properties": { @@ -720,48 +708,19 @@ } } }, - "functions.FunctionName": { - "type": "object", - "properties": { - "const": { - "type": "string" - } - } - }, - "functions.FunctionProperties": { - "type": "object", - "properties": { - "arguments": { - "$ref": "#/definitions/functions.Argument" - }, - "function": { - "$ref": "#/definitions/functions.FunctionName" - } - } - }, - "functions.ItemFunction": { + "functions.Item": { "type": "object", "properties": { "properties": { - "$ref": "#/definitions/functions.FunctionProperties" + "type": "object", + "additionalProperties": true }, "type": { "type": "string" } } }, - "functions.ItemName": { - "type": "object", - "properties": { - "properties": { - "$ref": "#/definitions/functions.NameProperties" - }, - "type": { - "type": "string" - } - } - }, - "functions.JSONFunctionStructureFunction": { + "functions.JSONFunctionStructure": { "type": "object", "properties": { "$defs": { @@ -771,49 +730,17 @@ "anyOf": { "type": "array", "items": { - "$ref": "#/definitions/functions.ItemFunction" + "$ref": "#/definitions/functions.Item" } }, "oneOf": { "type": "array", "items": { - "$ref": "#/definitions/functions.ItemFunction" + "$ref": "#/definitions/functions.Item" } } } }, - "functions.JSONFunctionStructureName": { - "type": "object", - "properties": { - "$defs": { - "type": "object", - "additionalProperties": true - }, - "anyOf": { - "type": "array", - "items": { - "$ref": "#/definitions/functions.ItemName" - } - }, - "oneOf": { - "type": "array", - "items": { - "$ref": "#/definitions/functions.ItemName" - } - } - } - }, - "functions.NameProperties": { - "type": "object", - "properties": { - "arguments": { - "$ref": "#/definitions/functions.Argument" - }, - "name": { - "$ref": "#/definitions/functions.FunctionName" - } - } - }, "functions.Tool": { "type": "object", "properties": { @@ -1481,10 +1408,7 @@ "type": "string" }, "grammar_json_functions": { - "$ref": "#/definitions/functions.JSONFunctionStructureFunction" - }, - "grammar_json_name": { - "$ref": "#/definitions/functions.JSONFunctionStructureName" + "$ref": "#/definitions/functions.JSONFunctionStructure" }, "ignore_eos": { "type": "boolean" diff --git a/swagger/swagger.yaml b/swagger/swagger.yaml index e40ef119..2d628566 100644 --- a/swagger/swagger.yaml +++ b/swagger/swagger.yaml @@ -7,14 +7,6 @@ definitions: url: type: string type: object - functions.Argument: - properties: - properties: - additionalProperties: true - type: object - type: - type: string - type: object functions.Function: properties: description: @@ -25,67 +17,28 @@ definitions: additionalProperties: true type: object type: object - functions.FunctionName: - properties: - const: - type: string - type: object - functions.FunctionProperties: - properties: - arguments: - $ref: '#/definitions/functions.Argument' - function: - $ref: '#/definitions/functions.FunctionName' - type: object - functions.ItemFunction: + functions.Item: properties: properties: - $ref: '#/definitions/functions.FunctionProperties' + additionalProperties: true + type: object type: type: string type: object - functions.ItemName: - properties: - properties: - $ref: '#/definitions/functions.NameProperties' - type: - type: string - type: object - functions.JSONFunctionStructureFunction: + functions.JSONFunctionStructure: properties: $defs: additionalProperties: true type: object anyOf: items: - $ref: '#/definitions/functions.ItemFunction' + $ref: '#/definitions/functions.Item' type: array oneOf: items: - $ref: '#/definitions/functions.ItemFunction' + $ref: '#/definitions/functions.Item' type: array type: object - functions.JSONFunctionStructureName: - properties: - $defs: - additionalProperties: true - type: object - anyOf: - items: - $ref: '#/definitions/functions.ItemName' - type: array - oneOf: - items: - $ref: '#/definitions/functions.ItemName' - type: array - type: object - functions.NameProperties: - properties: - arguments: - $ref: '#/definitions/functions.Argument' - name: - $ref: '#/definitions/functions.FunctionName' - type: object functions.Tool: properties: function: @@ -538,9 +491,7 @@ definitions: description: A grammar to constrain the LLM output type: string grammar_json_functions: - $ref: '#/definitions/functions.JSONFunctionStructureFunction' - grammar_json_name: - $ref: '#/definitions/functions.JSONFunctionStructureName' + $ref: '#/definitions/functions.JSONFunctionStructure' ignore_eos: type: boolean input: {}