Replies: 2 comments 1 reply
-
Hi can you convert this into an issue? |
Beta Was this translation helpful? Give feedback.
1 reply
-
new issue created : #7817 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello
I am trying to use the Vercel ai-sdk in order to extract specific fields values (first-name, last-name, sex) from a set of patients.
I am developing an Expo app (quite advanced right now) and try to integrate this AI sdk for importing patients into it.
I have extracted my code to show it in a reproducable way here, in order to run it it requires an .env.local set with the env-var EXPO_PUBLIC_OPENAI_API_KEY, and an update of the server url).
Server side
I have developed a server side API here and it seems to be working at least when I do a curl.
but the client fails.
client side
I just implemented a simple client using
useObject
here and it is failing with the following errorThe call seem to be waiting for the end of the payload (so the isLoading is working). But I would like to have streaming of each object. The object returned seems to be never filled with the data.
And it eventually fails at the end.
Any help would be much appreciated.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions