mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-05 02:31:47 +00:00
fix(models): consolidate provider and model into /model command
This commit is contained in:
parent
ac0325c257
commit
a0b62e0c5a
6 changed files with 83 additions and 34 deletions
|
|
@ -42,6 +42,14 @@ export function useCompletion(input: string, blocked: boolean, gw: GatewayClient
|
|||
return
|
||||
}
|
||||
|
||||
// `/model` / `/provider` use the two-step ModelPicker (real curated IDs).
|
||||
// Slash completion here only showed short aliases + vendor/family meta.
|
||||
if (isSlash && /^\/(?:model|provider)(?:\s|$)/.test(input)) {
|
||||
clear()
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
const pathReplace = input.length - (pathWord?.length ?? 0)
|
||||
|
||||
const t = setTimeout(() => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue