Skip to content

Not working createThreadAndRun / createThreadAndRunStream #66

@crash481

Description

@crash481

Tried to run Assistants api method that created thread and run in same function, but gets error
THREAD ERROR: responseUnsuccessful(description: "status code 400 You must provide the \'OpenAI-Beta\' header to access the Assistants API. Please try again by setting the header \'OpenAI-Beta: assistants=v2\'.", statusCode: 400)

The problem that in method service.createRunStream and service.createRun you add betaHeaderField: Self.assistantsBetaV2
But in method service.createThreadAndRun and service.createThreadAndRunStream not

But this methods is very convenience. It is good to have option to start new thread with start user message and run it oneline

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions