mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-29 04:08:12 +08:00
### Summary The FunASR provider added in #17171 defaults to a local `http://localhost:8000/v1` server, but it still inherited the global API-key requirement and unconditionally built an Authorization header. This prevented the default unauthenticated self-hosted deployment from working. The transcription path also dereferenced a missing model name while building its multipart request. This change: - allows an empty API key for FunASR, matching other local providers - omits the Authorization header when no key is configured while preserving trimmed Bearer authentication when one is provided - validates and trims the ASR model name before building the multipart request, returning an error instead of panicking - adds HTTP-level regression coverage for unauthenticated transcription/model listing and optional authentication