-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
I hope that when verifying the schema of the chunk, the object field allows for undefined #1488
Labels
Comments
@liuhuapiaoyuan can you provide an example of a provider that does not support the |
For example, like |
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Feature Description
const openaiChatChunkSchema = z.object({
object: z.enum([
'chat.completion.chunk',
'chat.completion', support for OpenAI-compatible providers such as Perplexity
]),
Because some third-party LLM are not fully standardized when they are compatible with OpenAI's interface, such as missing object, I hope this field can be selected
Use Case
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: