mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-27 07:38:51 +00:00
fix(core): accept null context length from LM Studio models (#63198)
This commit is contained in:
parent
c4bf172532
commit
05b32ea324
2 changed files with 3 additions and 2 deletions
|
|
@ -11,7 +11,8 @@ const RemoteModel = Schema.Struct({
|
|||
config: Schema.Struct({ context_length: Schema.Int }),
|
||||
}),
|
||||
),
|
||||
max_context_length: Schema.Int,
|
||||
// Null for decision models whose context is unknown.
|
||||
max_context_length: Schema.NullOr(Schema.Int),
|
||||
capabilities: Schema.Struct({
|
||||
vision: Schema.Boolean,
|
||||
trained_for_tool_use: Schema.Boolean,
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ describe("LMStudioPlugin", () => {
|
|||
key: "clef-flash",
|
||||
display_name: "Clef Flash",
|
||||
loaded_instances: [],
|
||||
max_context_length: 262_144,
|
||||
max_context_length: null,
|
||||
},
|
||||
],
|
||||
}),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue