mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-07 04:49:40 +00:00
Add the model limits to the expert settings
This commit is contained in:
6 files changed
+251
-2
No files matched your search
@@ -507,7 +507,7 @@ public sealed record ProviderCapabilityOverrides
|
||||
/// <returns>True, when the value is a number, this key accepts.</returns>
|
||||
private static bool TryReadNumber(LuaValue value, string numericKey, out int number)
|
||||
{
|
||||
if (!value.TryRead<int>(out number))
|
||||
if (!value.TryRead(out number))
|
||||
return false;
|
||||
|
||||
return numericKey is CONTEXT_WINDOW_KEY ? number > 0 : number >= 0;
|
||||
|
||||
Reference in new issue
Block a user