I first make a GET request to the backend (That works fine), the GET request (/start) returns the thread_id, the thread_id is passed along with the POST request (/get-completion) with the prompt entered, but the POST (/get-completion) request is being received as a GET request on the back end, there are no $ref variables being used in my schema, and I deleted it and recreated it too, still no luck, Even after deleting the Custom GPT bot and creating a new one the issue persists
This is the actions I use:
openapi: 3.0.1
info:
title: OpenAI Assistants API Plugin
description: A plugin to interact with OpenAI’s Assistants API, retrieving a list of assistants with sorting and limit options.
version: v1
servers:
url: https://api.openai.com/v1
paths:
/assistants:
get:
operationId: getAssistants
summary: Retrieve a list of assistants
parameters:
- name: order
in: query
required: false
schema:
type: string
description: Order of the assistants, either asc or desc
- name: limit
in: query
required: false
schema:
type: integer
description: Number of assistants to retrieve, up to 20
responses:
“200”:
description: A list of assistants
content:
application/json:
schema:
type: object
properties:
object:
type: string
data:
type: array
items:
$ref: “#/components/schemas/Assistant”
first_id:
type: string
last_id:
type: string
has_more:
type: boolean
components:
schemas:
Assistant:
type: object
properties:
id:
type: string
object:
type: string
created_at:
type: integer
name:
type: string
nullable: true
description:
type: string
nullable: true
model:
type: string
instructions:
type: string
nullable: true
tools:
type: array
items:
type: string
file_ids:
type: array
items:
type: string
metadata:
type: object
securitySchemes:
apiKeyAuth:
type: apiKey
in: header
name: Authorization
security:
apiKeyAuth:
But I get a response of:
{
“response_data”: {
“error”: {
“message”: “Invalid URL (GET /v1/assistants)”,
“type”: “invalid_request_error”,
“param”: null,
“code”: null
}
},
“status_code”: 404,
“action_id”: “<<<< I changed the action ID >>>>>>>”
}
This is just to enable GPT to list the assistants in my openai account. So if I can get this to work simply I just setup a GPT to edit my assistants etc.
I lost many days on this, and I think it is going to be something truely simple that I am just not doing.