diff --git a/api/openapi.json b/api/openapi.json index b1f5f96f..b6cbde0b 100644 --- a/api/openapi.json +++ b/api/openapi.json @@ -767,8 +767,7 @@ "title": "Provider" }, "type": { - "type": "string", - "title": "Type" + "$ref": "#/components/schemas/QuestionType" }, "chat_id": { "type": "string", @@ -897,6 +896,14 @@ "title": "QuestionAnswer", "description": "Represents a question and answer pair." }, + "QuestionType": { + "type": "string", + "enum": [ + "chat", + "fim" + ], + "title": "QuestionType" + }, "ValidationError": { "properties": { "loc": {