mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-25 00:51:20 +00:00
feat: add ctx_size to context length keys for Lemonade server support
- Adds 'ctx_size' field to _CONTEXT_LENGTH_KEYS tuple - Enables hermes agent to correctly detect context size from custom LLMs running on Lemonade server that use this field name instead of the standard keys (max_seq_len, n_ctx_train, n_ctx)
This commit is contained in:
parent
12f9f10f0f
commit
27621ef836
1 changed files with 1 additions and 0 deletions
|
|
@ -203,6 +203,7 @@ _CONTEXT_LENGTH_KEYS = (
|
|||
"max_seq_len",
|
||||
"n_ctx_train",
|
||||
"n_ctx",
|
||||
"ctx_size",
|
||||
)
|
||||
|
||||
_MAX_COMPLETION_KEYS = (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue