+
Skip to content

Conversation

HenryL27
Copy link
Collaborator

@HenryL27 HenryL27 commented Oct 17, 2024

OpenAI doesn't like it if you try to embed the empty string, but it gives a terrible error message

BadRequestError: Error code: 400 - {'error': {'message': "'$.input' is invalid. Please check the API reference: https://platform.openai.com/docs/api-reference.", 'type': 'invalid_request_error', 'param': None, 'code': None}}

Anyway, don't do that. (also pure whitespace seems to be a problem)

Signed-off-by: Henry Lindeman <hmlindeman@yahoo.com>
@HenryL27 HenryL27 requested a review from sohamkasar19 October 17, 2024 20:44
@HenryL27 HenryL27 marked this pull request as ready for review October 17, 2024 20:44
Signed-off-by: Henry Lindeman <hmlindeman@yahoo.com>
@HenryL27 HenryL27 merged commit ada1cfc into main Oct 17, 2024
10 of 11 checks passed
@HenryL27 HenryL27 deleted the hml-dont-embed-empty-string branch October 17, 2024 22:56
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.

2 participants

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载