From b347e8d005f9d263e3a906827c93d9ff629eb383 Mon Sep 17 00:00:00 2001 From: Troy Taylor <44444967+troystaylor@users.noreply.github.com> Date: Thu, 9 May 2024 16:31:41 -0400 Subject: [PATCH 1/2] Update apiDefinition.swagger.json --- .../OpenAI GPT-4/apiDefinition.swagger.json | 51 +++++++++++++++---- 1 file changed, 42 insertions(+), 9 deletions(-) diff --git a/independent-publisher-connectors/OpenAI GPT-4/apiDefinition.swagger.json b/independent-publisher-connectors/OpenAI GPT-4/apiDefinition.swagger.json index 955e40b215..944f238706 100644 --- a/independent-publisher-connectors/OpenAI GPT-4/apiDefinition.swagger.json +++ b/independent-publisher-connectors/OpenAI GPT-4/apiDefinition.swagger.json @@ -3,7 +3,7 @@ "info": { "title": "OpenAI GPT", "description": "OpenAI is an artificial intelligence research laboratory. The company conducts research in the field of AI with the stated goal of promoting and developing friendly AI in a way that benefits humanity as a whole. Through this connector you can access the Generative Pre-trained Transformer 4 (GPT-4), an autoregressive language model that uses deep learning to produce human-like text, plus many other models.", - "version": "1.3", + "version": "1.4", "contact": { "name": "Troy Taylor", "url": "https://www.hitachisolutions.com", @@ -27,7 +27,7 @@ "description": "Creates a completion for the provided prompt and parameters.", "summary": "Create completion", "operationId": "CompletionPost", - "deprecated": false, + "deprecated": true, "parameters": [ { "name": "body", @@ -41,7 +41,7 @@ "type": "string", "description": "ID of the model to use.", "title": "Model", - "default": "gpt-4-1106-preview", + "default": "gpt-4-turbo", "x-ms-dynamic-values": { "operationId": "ModelsGet", "value-path": "id", @@ -189,6 +189,15 @@ } } } + }, + "x-ms-openai-data": { + "openai-enabled": false, + "operations": [ + { + "operationId": "CompletionPost", + "x-ms-require-user-confirmation": true + } + ] } } }, @@ -300,7 +309,7 @@ "type": "string", "description": "The chat model.", "title": "Model", - "default": "gpt-4-1106-preview", + "default": "gpt-4-turbo", "x-ms-dynamic-values": { "operationId": "ModelsGet", "value-path": "id", @@ -316,7 +325,8 @@ "role": { "type": "string", "description": "The role.", - "title": "Role" + "title": "Role", + "default": "user" }, "content": { "type": "string", @@ -384,7 +394,16 @@ ] } } - ] + ], + "x-ms-openai-data": { + "openai-enabled": true, + "operations": [ + { + "operationId": "ChatPost", + "x-ms-require-user-confirmation": true + } + ] + } } }, "/v1/edits": { @@ -651,7 +670,16 @@ "summary": "List models", "description": "Lists the currently available models, and provides basic information about each one such as the owner and availability.", "operationId": "ModelsGet", - "parameters": [] + "parameters": [], + "x-ms-openai-data": { + "openai-enabled": true, + "operations": [ + { + "operationId": "ModelsGet", + "x-ms-require-user-confirmation": false + } + ] + } } }, "/v1/fine_tuning/jobs": { @@ -2029,5 +2057,10 @@ "propertyName": "Categories", "propertyValue": "AI" } - ] -} \ No newline at end of file + ], + "x-ms-openai-manifest": { + "humanName": "OpenAI", + "modelDescription": "This is Copilot plugin for the OpenAI service.", + "contactEmail": "ttaylor@hitachisolutions.com" + } +} From 0b173db14451353626ce86ad6a7baab55242ea57 Mon Sep 17 00:00:00 2001 From: Troy Taylor <44444967+troystaylor@users.noreply.github.com> Date: Fri, 10 May 2024 14:52:35 -0400 Subject: [PATCH 2/2] Update apiDefinition.swagger.json --- .../OpenAI GPT-4/apiDefinition.swagger.json | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/independent-publisher-connectors/OpenAI GPT-4/apiDefinition.swagger.json b/independent-publisher-connectors/OpenAI GPT-4/apiDefinition.swagger.json index 944f238706..fcac847abc 100644 --- a/independent-publisher-connectors/OpenAI GPT-4/apiDefinition.swagger.json +++ b/independent-publisher-connectors/OpenAI GPT-4/apiDefinition.swagger.json @@ -8,7 +8,13 @@ "name": "Troy Taylor", "url": "https://www.hitachisolutions.com", "email": "ttaylor@hitachisolutions.com" - } + }, + "x-ms-keywords": [ + "OpenAI", + "AI", + "LLM", + "completion" + ] }, "host": "api.openai.com", "basePath": "/",