Repository navigation
feat(ai-files): create knowledge from public urls - #1707
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Let builder users and API callers create an AI File from a public URL:
a direct file link, a publicly shared Google Docs/Sheets/Slides link, or
a static HTML page. The URL is downloaded once into a private snapshot;
reindex never re-fetches it and the source URL is not stored.
detection, and a 25 MiB AI_FILE_MAX_UPLOAD_BYTES; the ai picker map is
derived from it
reject non-public Google files and publish-to-web links, infer the type
of octet-stream downloads, 60s download timeout, check size/type of
presigned uploads with headObject (deleting refused objects), and
AIFileCreateException carrying a stable reason
UploadValidationError, no Location echoed in redirect errors
of indexing decoded noise
createAIFileFromUrlAction, translated create errors in 21 locales, and
one rate-limit bucket shared by the UI action and aiFiles.create
Public API: shape unchanged. The size limit drops from 100 MB to 25 MiB
(breaking only for url downloads of 25-50 MiB), creating from a url is
rate limited (429), and a refused file or URL is 400 businessError.