Skip to content

fix(config): include model in custom_providers dedup key#9233

Closed
akhater wants to merge 1 commit into
NousResearch:mainfrom
akhater:fix/config-dedup-preserve-models
Closed

fix(config): include model in custom_providers dedup key#9233
akhater wants to merge 1 commit into
NousResearch:mainfrom
akhater:fix/config-dedup-preserve-models

Conversation

@akhater

@akhater akhater commented Apr 13, 2026

Copy link
Copy Markdown
Contributor

Summary

  • get_compatible_custom_providers() deduplicates entries by (name, base_url), which collapses multiple models under the same provider into a single entry
  • For example, 7 Ollama Cloud entries with different models (minimax-m2.7, kimi-k2.5, glm-5.1, etc.) all sharing the same name + URL become 1 entry
  • The /model picker then shows "Ollama Cloud (1)" instead of "Ollama Cloud (7)"

Fix

Add model to the dedup tuple: (name, base_url, model). Entries with the same provider name and URL but different models are now preserved.

Test plan

  • Verified with config containing 7 Ollama Cloud entries — all 7 now returned by get_compatible_custom_providers()
  • /model picker shows correct count
  • Azure PTG (single entry) unaffected
  • No duplicate entries when model field is the same

🤖 Generated with Claude Code

get_compatible_custom_providers() deduplicates by (name, base_url) which
collapses multiple models under the same provider into a single entry.
For example, 7 Ollama Cloud entries with different models become 1.
Adding model to the tuple preserves all entries.
teknium1 added a commit that referenced this pull request Apr 13, 2026
teknium1 added a commit that referenced this pull request Apr 13, 2026
@teknium1

Copy link
Copy Markdown
Contributor

Merged via PR #9275. Your commit was cherry-picked onto current main with your authorship preserved in git log. Thanks @akhater!

ulasbilgen pushed a commit to ulasbilgen/hermes-adhd-agent that referenced this pull request May 1, 2026
aj-nt pushed a commit to aj-nt/hermes-agent that referenced this pull request May 1, 2026
@akhater akhater deleted the fix/config-dedup-preserve-models branch May 1, 2026 17:59
02356abc pushed a commit to 02356abc/hermes-agent that referenced this pull request May 14, 2026
gweeteve pushed a commit to gweeteve/hermes-agent that referenced this pull request Jun 2, 2026
Egavasyug pushed a commit to Egavasyug/hermes-agent that referenced this pull request Jun 10, 2026
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.

2 participants