Compare commits

...

2 Commits

Author SHA1 Message Date
vanzue
2d080f4117 Merge remote-tracking branch 'origin/main' into dev/vanzue/hotfix 2025-11-21 16:23:00 +08:00
vanzue
288a8dd9f6 adjust params for models 2025-11-21 16:10:02 +08:00
2 changed files with 2 additions and 1 deletions

View File

@@ -64,7 +64,7 @@ public sealed class FoundryLocalModelProvider : ILanguageModelProvider
return new OpenAIClient(
new ApiKeyCredential("none"),
new OpenAIClientOptions { Endpoint = endpointUri })
new OpenAIClientOptions { Endpoint = endpointUri, NetworkTimeout = TimeSpan.FromMinutes(5) })
.GetChatClient(modelId)
.AsIChatClient();
}

View File

@@ -146,6 +146,7 @@ public sealed class FoundryLocalPasteProvider : IPasteAIProvider
var options = new ChatOptions
{
ModelId = modelReference,
MaxOutputTokens = 2048,
};
if (!string.IsNullOrWhiteSpace(systemPrompt))