Comments (7)
https://github.com/vercel/ai/releases/tag/%40ai-sdk%2Fopenai%400.0.28
from ai.
Hmm what happens if the model tries to call multiple tools in parallel? Does the generate function just run once for the first tool then throw?
from ai.
it looks like the underlying model implementation supports multiple tool calls.
from ai.
ai/packages/core/rsc/stream-ui/stream-ui.tsx
Line 301 in f7002ad
ai/packages/core/rsc/stream-ui/stream-ui.tsx
Line 187 in f7002ad
Looks like streamUI should also. My understanding is it just pulls on the stream until it's done, the tool-call chunk gets pushed down for every toolCall in the response from OpenAI
from ai.
Thanks for looking into this @camwest. I created an issue for what goes wrong #1894 . Basically the stream gets closed before all the tool calls have been processed. But - perhaps I'm not setting things up the right way?
from ai.
Thanks for looking into this @camwest. I created an issue for what goes wrong #1894 . Basically the stream gets closed before all the tool calls have been processed. But - perhaps I'm not setting things up the right way?
No the error makes sense. Thanks for sharing.
from ai.
from ai.
Related Issues (20)
- Add `isLoading` and `stop` functionality to `useObject` hook HOT 3
- If the request fails, the previous message is not restored
- Support streaming tools in streamText, streamUI
- Tool calling visibility HOT 2
- Incorrect `args` format in `tool-call` messages when calling functions with no parameters HOT 5
- Azure Provider: add api version parameter HOT 2
- `streamObject` with `@ai-sdk/anthropic` only provides a full object once finished via `.toTextStreamResponse()` HOT 5
- Tool calls stopped working when switching from gpt-4o to anthropic claude-sonnet HOT 6
- useObject hook's isLoading and stop functionality not working as expected during streaming HOT 2
- useObject hook's isLoading remains true after stopping the stream HOT 2
- UI Update Failure in Production with AI SDK 3.2.14 on Vercel Edge Runtime HOT 6
- Allow showing a spinner while client-side tools are running
- Responses not adhering to Zod schema with OpenAI models HOT 1
- Fetch is not passed to useChat hook
- Unable to access some of the return values from `streamUI()`
- Impossible to repeatedly create new threads using useAssistant hook
- generateObject with AWS Bedrock (Claude 3.5 Sonnet) Fails with ValidationException HOT 1
- Invalid request call with empty zod schema tool parameter
- `credentials` option in useChat Hook(React) doesn't handle HttpOnly tokens properly HOT 2
- Cannot pass in parts into system message
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ai.