Comments (4)
Did a small PR to solve this, LMK if it's useful 🙏
from ai.
@lgrammel did you have the chance to review this? It's blocking our team, and it'd be awesome to know if you'll add this
from ai.
You can use sendDataMessage
to send any data from the assistant response to the client.
from ai.
Hey, I have the same question, and I don't quite understand how I could append the metadata to the sendDataMessage
function based on the documentation example. It creates a new message, where what I was looking for is the message object to include the metadata that comes from the openai response.
Should I fetch the message again from openai?
from ai.
Related Issues (20)
- Sveltekit handleSubmit sends back data as undefined HOT 1
- Tools call is triggered, but the new tools format does not execute the code. HOT 6
- When using streamUI, I need to be able to update the ui from onFinish HOT 1
- When using tools, I get a 'ui stream is already closed' HOT 3
- experimental_useObject to include attachments HOT 2
- ReferenceError: performance is not defined HOT 3
- Functions import from OpenAPI spec
- Get the traceId, (telematry data) sent back from function result. HOT 1
- When providing image message to any groq model, it throws `message[0].content must be a string` HOT 4
- Invalid data content. Content string is not a base64-encoded media. HOT 2
- Provide provider chat id and timestamp HOT 1
- Large amounts of Suspense leading to browser crashing/max call stack error HOT 1
- Prompt Token Usage not accurate when using Anthropic Prompt Caching HOT 1
- add tool roundtrips to streamUI HOT 6
- Example code using AI State breaks when sending follow-up user message in conversation
- useChat maxRoundTrips breaks in 3.3.21 HOT 6
- Enable dynamic handling of maxTokens limits across embed() models with 1. a utility to count tokens and 2. options to automatically truncate or 3. chunk provided strings HOT 1
- infer correct return types when using `output: 'array'` with `experimental_useObject` HOT 4
- How to Call API Request without using handleSubmit and add More inputs HOT 3
- Expose `PartialObject` type HOT 6
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.