Hey everyone, I have a question. In the OpenAI GPTs configurator you can make function calls and make a Post/Get request. Below is an example from openai. Is there a way to make the GPT make a chat completion request for the latest gpt-4 turbo preview model? I can build an API to do this myself but wondering if it can be done directly.
{
"openapi": "3.1.0",
"info": {
"title": "OpenAI Profile",
"description": "Gets data about the current user's OpenAI profile",
"version": "v1.0.0"
},
"servers": [
{
"url": "https://api.openai.com"
}
],
"paths": {
"/v1/me": {
"get": {
"description": "Gets the user's profile",
"operationId": "GetProfile",
"parameters": [],
"deprecated": false,
"security": [
{
"apiKey": []
}
]
}
},
"/v1/chat/completions": {
"post": {
"description": "Creates a model response for the given chat conversation.",
"operationId": "RequestCompletion",
"parameters": [],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/RequestCompletionRequestSchema"
}
}
},
"required": true
},
"deprecated": false,
"security": [
{
"apiKey": []
}
]
}
}
},
"components": {
"schemas": {
"RequestCompletionRequestSchema": {
"properties": {
"model": {
"type": "string",
"title": "model",
"description": "ID of the model to use"
},
"messages": {
"type": "array",
"items": {
"type": "object",
"properties": {
"role": {
"type": "string",
"enum": [
"system",
"user",
"assistant"
]
},
"content": {
"type": "string"
}
}
}
}
},
"type": "object",
"required": [
"model",
"messages"
],
"title": "RequestCompletionRequestSchema"
}
},
"securitySchemes": {
"apiKey": {
"type": "apiKey"
}
}
}
}