We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
download
Hey! Thanks a ton for the super nice package! 🙌
I was wondering if the ability to customize downloadImplementations could be exposed to streamText via an option.
downloadImplementation
streamText
It seems that the feature is almost there! 👀 I noticed that convertToLanguageModelPrompt can accept a custom downloadImplementation:
convertToLanguageModelPrompt
ai/packages/ai/core/prompt/convert-to-language-model-prompt.ts
Lines 21 to 26 in c738971
So essentially, have this
ai/packages/ai/core/generate-text/stream-text.ts
Lines 431 to 439 in c738971
also provide that option.
Would it be something that we could add to support?
This would make it possible to:
No response
The text was updated successfully, but these errors were encountered:
Looking at the code, I would prefer to just make the fetch function that is used for the download configurable. Would that work for your use case?
Sorry, something went wrong.
No branches or pull requests
Feature Description
Hey! Thanks a ton for the super nice package! 🙌
I was wondering if the ability to customize
downloadImplementation
s could be exposed tostreamText
via an option.It seems that the feature is almost there! 👀 I noticed that
convertToLanguageModelPrompt
can accept a customdownloadImplementation
:ai/packages/ai/core/prompt/convert-to-language-model-prompt.ts
Lines 21 to 26 in c738971
So essentially, have this
ai/packages/ai/core/generate-text/stream-text.ts
Lines 431 to 439 in c738971
also provide that option.
Would it be something that we could add to support?
Use Cases
This would make it possible to:
Additional context
No response
The text was updated successfully, but these errors were encountered: