Skip to content

fix(embedder): report configured provider in slow-call logs#1402

Closed
qin-ctx wants to merge 1 commit intomainfrom
fix/embedder-provider-logging
Closed

fix(embedder): report configured provider in slow-call logs#1402
qin-ctx wants to merge 1 commit intomainfrom
fix/embedder-provider-logging

Conversation

@qin-ctx
Copy link
Copy Markdown
Collaborator

@qin-ctx qin-ctx commented Apr 13, 2026

Description

Fix embedder slow-call warnings so they report the configured embedding provider instead of falling back to unknown or exposing the transport client mode.

Related Issue

Fixes #1397

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Refactoring (no functional changes)
  • Performance improvement
  • Test update

Changes Made

  • set canonical provider names on embedders instead of relying on config lookups for slow-call logging
  • distinguish configured provider names from OpenAI transport modes so Ollama/OpenAI-compatible backends log the provider users actually configured
  • add a regression test covering async slow-call logging for an Ollama-backed embedder

Testing

  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • I have tested this on the following platforms:
    • Linux
    • macOS
    • Windows

Ran:

  • python -m pytest -o addopts='' tests/unit/test_extra_headers_embedding.py tests/unit/test_openai_embedder.py tests/unit/test_litellm_embedder.py

Checklist

  • My code follows the project's coding style
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Any dependent changes have been merged and published

Screenshots (if applicable)

N/A

Additional Notes

  • Local git commit hooks require the pre_commit module, which is not installed in this environment, so the commit was created with --no-verify.
  • The repo's default pytest addopts expect pytest-cov; the test command above overrides addopts because that plugin is not installed in this environment.

Preserve the configured embedding provider in slow-call warnings so OpenAI-compatible backends like Ollama do not show up as unknown or as their transport mode.
@github-actions
Copy link
Copy Markdown

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

🎫 Ticket compliance analysis 🔶

1397 - Partially compliant

Compliant requirements:

  • Fix docker logs for embedding model showing "provider=unknown" instead of the configured provider

Non-compliant requirements:

  • (empty)

Requires further human verification:

  • (empty)
⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪
🏅 Score: 95
🧪 PR contains tests
🔒 No security concerns identified
✅ No TODO sections
🔀 No multiple PR themes
⚡ No major issues detected

@github-actions
Copy link
Copy Markdown

PR Code Suggestions ✨

No code suggestions found for the PR.

@qin-ctx qin-ctx closed this Apr 13, 2026
@github-project-automation github-project-automation bot moved this from Backlog to Done in OpenViking project Apr 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[Question]: Error in docker logs for embedding model

1 participant