Skip to content

fix: /llm per-request provider override, Redis config from host/port/password (#1611, #1817)#1827

Open
hafezparast wants to merge 1 commit intounclecode:developfrom
hafezparast:fix/maysam-llm-provider-redis-config-1611-1817
Open

fix: /llm per-request provider override, Redis config from host/port/password (#1611, #1817)#1827
hafezparast wants to merge 1 commit intounclecode:developfrom
hafezparast:fix/maysam-llm-provider-redis-config-1611-1817

Conversation

@hafezparast
Copy link

Summary

Changes

  • deploy/docker/server.py: Added provider, temperature, base_url query params to /llm endpoint; replaced config["redis"].get("uri") with _build_redis_url() that constructs URL from config fields + env vars
  • deploy/docker/api.py: Updated handle_llm_qa() signature to accept provider, temperature, base_url with fallback to server config

Test plan

  • New test suite: tests/test_issue_1611_llm_provider.py (14 tests)
  • Regression suite: 304/305 passing (1 pre-existing HuggingFace failure, no new regressions)

Generated with Claude Code

…password (unclecode#1611, unclecode#1817)

- unclecode#1611: /llm GET endpoint hardcoded server's LLM_PROVIDER. Added optional
  provider, temperature, base_url query params with fallback to server config.
  Consistent with /md and /llm/job endpoints.
- unclecode#1817: Redis connection used non-existent config["redis"]["uri"]. Now builds
  URL from host/port/password/db/ssl config fields with REDIS_HOST, REDIS_PORT,
  REDIS_PASSWORD environment variable overrides.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant