Add CF_DOCUVISION_URL direct fallback in _try_docuvision() #150
Labels
No labels
accessibility
backlog
beta-feedback
bug
duplicate
enhancement
feature-request
help wanted
invalid
needs-design
needs-triage
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Circuit-Forge/kiwi#150
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
_try_docuvision()inapp/services/ocr/vl_model.pycurrently gates onCF_ORCH_URL:If
CF_ORCH_URLis not set, the function returnsNoneand never attempts the docuvision call — even if the user has setCF_DOCUVISION_URLpointing to a standalonecf-docuvisioncontainer.CF_DOCUVISION_URLis not read anywhere in Kiwi. Self-hosters running their owncf-docuvisioninstance cannot connect it without this fix.Fix
In
_try_docuvision(), readCF_DOCUVISION_URLas a direct fallback:When
CF_ORCH_URLis set, cf-orch still takes precedence (existing behaviour). When onlyCF_DOCUVISION_URLis set, Kiwi connects directly to the standalone service.Acceptance criteria
CF_DOCUVISION_URLis read from env_try_docuvision()uses it whenCF_ORCH_URLis absent.env.exampledocumentsCF_DOCUVISION_URLwith a comment explaining it is for self-hosters without cf-orchCF_DOCUVISION_URL-only path (mock HTTP call)Labels
enhancement, self-hosting