Skip to content

Conversation

@mudler
Copy link
Owner

@mudler mudler commented Nov 15, 2023

Description

Otherwise we fail with:

failed to generate answer: error, status code: 500, message: failed reading parameters from request:failed parsing request body: json: cannot unmarshal object into Go struct field OpenAIRequest.response_format of type string

Notes for Reviewers

Signed commits

  • Yes, I signed my commits.

@mudler mudler changed the title fix: properly respect OpenAI spec for response format fix: respect OpenAI spec for response format Nov 15, 2023
@mudler mudler added the bug Something isn't working label Nov 15, 2023
@mudler mudler merged commit 66a558f into master Nov 15, 2023
@mudler mudler deleted the json_type branch November 15, 2023 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants