Skip to content
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

Error on receiving meta information from model #9

Open
paintkeeper opened this issue Jan 16, 2024 · 1 comment
Open

Error on receiving meta information from model #9

paintkeeper opened this issue Jan 16, 2024 · 1 comment

Comments

@paintkeeper
Copy link

paintkeeper commented Jan 16, 2024

https://github.com/carlrobertoh/LLM-Client/blob/9e6fe09a719a42744a9c8e574180615aa624d4df/src/main/java/ee/carlrobert/llm/client/openai/completion/OpenAIChatCompletionEventSourceListener.java#L19

SSE can come with meta information, which has empty choices array. E.g.:
data: {"id":"","object":"","created":0,"model":"","prompt_filter_results":[{"prompt_index":0,"content_filter_results":{"hate":{"filtered":false,"severity":"safe"},"self_harm":{"filtered":false,"severity":"safe"},"sexual":{"filtered":false,"severity":"safe"},"violence":{"filtered":false,"severity":"safe"}}}],"choices":[]}

@reneleonhardt
Copy link
Contributor

Hello @paintkeeper can you confirm that the change 3831d02 in 0.6.0 fixes that problem?

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

No branches or pull requests

2 participants