Lars Grammel

Results 105 comments of Lars Grammel

The JSX issue is risky to fix. Can you try installing just the React types and see if that helps? ``` "@types/react": "^18.2.8", ```

I have just tested the openai function call example incl. client side execution ( https://github.com/vercel/ai/tree/main/examples/next-openai/app/function-calling ) and it works as expected. I'll check out your repository to see if I...

Workaround: you can use this to create the stream: ```ts const stream = OpenAIStream(response, { async experimental_onFunctionCall() { return; }, }); ``` I'll investigate how to automatically support function calls...

@johnson-liang thanks. No need for a PR, we're in the process of updating our docs, so your changes would get lost.

Gemini does not support forced function calling yet (`streamObject`). You can use it with tools using `streamText` ( https://sdk.vercel.ai/docs/ai-core/stream-text ), see e.g. https://github.com/vercel/ai/pull/1212 for an RSC example.

@jaycoolslm thank you!

@MartinCura adding a prelude can cause problems with stream parsing on the client (if you use useChat or useCompletion). Have you considered using `StreamData` instead? https://sdk.vercel.ai/docs/ai-sdk-ui/streaming-data

`streamToResponse` supports stream data in `v3.1.12`

This is potentially a duplicate of https://github.com/vercel/ai/issues/1316 You can check out https://github.com/vercel/ai/issues/1316#issuecomment-2048346351 for upgrade instructions.

We now recommend using `streamUI` instead of `render`. Would this apply to streamUI as well?