Skip to content

- Update FailedError struct to correct api schema #159

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 23, 2025

Conversation

jeremy-prater
Copy link
Contributor

The Failederror struct has the following format from OpenAI

{
    "error":{
        "code":null,
        "message":"The server had an error while processing your request. Sorry about that! Please contact us through our help center at help.openai.com if the error persists. (include session ID in your message: sess_BPCNZdLMHo8ERhJi0qgtq). We recommend you retry your request.",
        "type":"server_error"
    },
    "type":"failed"
}

Updated struct to match

https://platform.openai.com/docs/api-reference/realtime-server-events/response/done

@dongri
Copy link
Owner

dongri commented Apr 23, 2025

LGTM

@dongri dongri merged commit f346261 into dongri:main Apr 23, 2025
1 check passed
@jeremy-prater jeremy-prater deleted the prater/fix_failederror_struct branch April 23, 2025 23:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants