JSON API Spec for openai apis?

Hey, is there somewhere or somehow I can get the openai apis in json so that I can plug them into the GPTs and Assistants easily? I can translate them with chatgpt but that seem wasteful, and still means a lot of copy and pasting as the openapi.yaml is huge.

Thanks!

1 Like

Same problem here, I also see you did not get a response:

openapi: 3.0.1
info:
title: Assistants Listing API
version: 1.0.0
servers:

  • url: https://api.openai.com/v1
    paths:
    /assistants:
    get:
    summary: Returns a list of assistants
    operationId: listAssistants
    parameters:
    - name: limit
    in: query
    description: A limit on the number of objects to be returned, ranging between 1 and 100
    required: false
    schema:
    type: integer
    default: 20
    - name: order
    in: query
    description: Sort order by the created_at timestamp, ‘asc’ for ascending and ‘desc’ for descending
    required: false
    schema:
    type: string
    default: ‘desc’
    - name: after
    in: query
    description: A cursor for pagination to fetch the next page of the list
    required: false
    schema:
    type: string
    - name: before
    in: query
    description: A cursor for pagination to fetch the previous page of the list
    required: false
    schema:
    type: string
    responses:
    200:
    description: A list of assistant objects
    content:
    application/json:
    schema:
    type: object
    properties:
    object:
    type: string
    example: “list”
    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
    description:
    type: string
    model:
    type: string
    instructions:
    type: string
    tools:
    type: array
    items:
    type: string
    file_ids:
    type: array
    items:
    type: string
    metadata:
    type: object

So I created this, which in theory should work… But the response is
image

So if you find a way please let me know. If I find a way I will let you know.

1 Like

If I can figure out what is wrong it would be brilliant, as I want to convert every single call so that I can GPT it. But it fails on the basics, and search as I might, I do not find solutions. I got this to work on google, I even got aws functions working via api’s but this one… It is almost as if openai do not want tus to integrate openai into openai.

1 Like