feat: add Nous Portal (Nous Research) native provider#794
Closed
iqdoctor wants to merge 6 commits into
Closed
Conversation
7fe1ff4 to
c00c488
Compare
- Add NousSettings (base-url / api-key override) to fast-agent config
- Register NousLLM (OpenAICompatibleLLM) in model_factory
- Add Nous Portal models to model_database:
hermes-3-405b, hermes-3-70b, hermes-2-405b, hermes-2-70b, epistem-7b-hermes-2-beta, stepfun/step-3.5-flash
- Port product-attribution tags and base URL from Hermes Nous Portal plugin
- Fixes: stepfun/step-3.5-flash via Nous Portal is now a first-class model
- Insert Provider.NOUS after Provider.ALIYUN in PICKER_PROVIDER_ORDER - Add stepfun/step-3.5-flash as sole CATALOG_ENTRIES_BY_PROVIDER entry for NOUS - Without these, model_picker_common.build_snapshot() skipped NOUS entirely
Hermes uses https://inference-api.nousresearch.com/v1 (with -api), which is not blocked from this IP range. The bare inference.nousresearch.com drops TLS client hello (SSL_ERROR_SYSCALL). Also updates docstring to match.
Matches Hermes Agent's curated model list from inference-api.nousresearch.com.
All models use the nous.{model_id} spec format; parse_model_string strips
the nous. prefix for the API call.
Models: opus47, opus46, sonnet46, kimi26, qwen36p, haiku45, gpt55,
gpt55pro, gpt54mini, gpt54nano, gpt53codex, mimo25pro, hy3, gem3pro,
gem3flash, gem31pro, gem31fl, qwen36b, step35, minimax27, glm51,
grok43, nemotron3, dsv4pro
7651db7 to
265344d
Compare
Aliases like opus47, sonnet46, gpt55 already exist in MODEL_PRESETS pointing to native providers. Adding a prefix avoids the assertion failure in test_curated_catalog_aliases_are_parseable.
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a first-class Nous Research Portal provider for fast-agent, ported from the Hermes Nous Portal provider (`/hermes-agent/plugins/model-providers/nous/`).
What it does
Usage: `fast-agent --model nous.hermes-3-405b`
Auth: `NOUS_API_KEY` or `nous.api_key` in config