Shu Ding
Shu Ding
Can you check what `response` is? There might be some error message attached.
As you can see, `response.generated_text` is not defined. Where did you find the code of `response.generated_text` in the docs? We have an example [here](https://sdk.vercel.ai/docs/guides/huggingface) here that shows how the SDK...
Thank you! Feel free to open an issue or discussion whenever you're running into a problem again. I'll close this for now as there's nothing to track at the moment.
Sounds good to add a `credentials` field to all the hooks, PR welcomed!
Good call - ideally all methods that trigger a request should accept an extra optional option, that can contain custom body and headers.
I think this will be covered by #163. Error code 429 came from OpenAI that you can log out the response body to see more details.
Kinda related to https://github.com/vercel-labs/ai/issues/167#issuecomment-1604790534.
Can you share your `tsconfig.json`?
> We need to indicate that if the developer wants to use UseCompletion, then the api route must set in the /api/completion/route folder > if he or she uses useChat...
I think this feature request makes sense. IMO a `beforeCompletion` callback would be interesting (more feedback needed though!)