You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
npm run type-check was also run. It fails with pre-existing unrelated TypeScript errors that are reproducible on upstream main (3b317f7e) in files such as src/api/agent/index.ts, src/api/embed/index.ts, and src/views/knowledge/KnowledgeBase.vue.
This field is not part of the official PaddleOCR/PaddleX self-hosted /layout-parsing API. The official PaddleX serving docs only define the request body (file, fileType, etc.) and do not document any auth header.
Do you have some related docs about it ?
This field is not part of the official PaddleOCR/PaddleX self-hosted /layout-parsing API. The official PaddleX serving docs only define the request body (file, fileType, etc.) and do not document any auth header. Do you have some related docs about it ?
Thanks for pointing this out. You are right: this is not part of the official PaddleX self-hosted /layout-parsing API, and the previous field name/description made that unclear.
I updated the PR to rename the setting to paddleocr_vl_bearer_token and clarified that it is only for deployments where the self-hosted service is protected by an external auth gateway or reverse proxy. Official PaddleX Serving does not require this field, and leaving it empty keeps the official API behavior unchanged.
I also kept backward-compatible reading of the old paddleocr_vl_api_key field internally, but it is no longer exposed in the public config schema.
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
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.
Summary
paddleocr_vl_api_keysetting for the self-hosted PaddleOCR-VL parserAuthorization: Bearer <API Key>on self-hosted PaddleOCR-VL availability checks and/layout-parsingparse requestsCloses #1721
Test plan
go test ./internal/infrastructure/docparsernpm run type-checkwas also run. It fails with pre-existing unrelated TypeScript errors that are reproducible on upstreammain(3b317f7e) in files such assrc/api/agent/index.ts,src/api/embed/index.ts, andsrc/views/knowledge/KnowledgeBase.vue.