feat(settings): add Nous Portal provider (#175)
CI / ci (push) Canceled after 0s
CI / ci (push) Canceled after 0s
Settings gains hermes' `nous` slug as a fourth provider on every surface and the Provider Keys page — endpoint https://inference-api.nousresearch.com/v1, NOUS_API_KEY, the 5-level OpenAI-compatible effort ladder, switch flagship anthropic/claude-sonnet-5 (live-probed: the portal's docs-listed Hermes-4 ids 404 — the inference API serves the OpenRouter catalog, so the switch keeps the app's sonnet posture billed through Nous). The probe speaks plain OpenAI chat-completions; an unkeyed test borrows the shared Portal session's agent_key (the engine's own credential — hermes' nous runtime is OAuth-only, and a portal key and subscription bill the same account credits), gated to the official https endpoint so the implicit credential never rides a user-edited URL. Pass readiness rides the same fallback, so a logged-in machine runs passes with no key. Suite 635. Closes #175
This commit is contained in:
1 parent
d305f822aa
commit
b2db859887
15 files changed
+410
-30
No files matched your search
@@ -220,6 +220,17 @@ private struct ProviderKeyBlock: View {
|
||||
.font(.system(size: 11.5))
|
||||
.foregroundStyle(DesignTokens.muted)
|
||||
}
|
||||
if provider == .nous {
|
||||
// #175: the engine auths nous through hermes' own Portal
|
||||
// login (device-code, shared across profiles) — the key
|
||||
// field is optional and bills the same account credits.
|
||||
Text(
|
||||
"Chats ride your Hermes Portal login — no key needed once hermes is signed in (hermes auth add nous). "
|
||||
+ "A pasted key bills the same account credits (API or subscription).",
|
||||
)
|
||||
.font(.system(size: 11.5))
|
||||
.foregroundStyle(DesignTokens.muted)
|
||||
}
|
||||
// #136: Test Connection (factsheet §4) — /models count + a
|
||||
// minimal streaming chat; latency + model count on success,
|
||||
// the honest decoded verdict otherwise.
|
||||
|
||||
Reference in new issue
Block a user