mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-13 05:13:47 +00:00
Read the context window from a provider's model list
This commit is contained in:
8 files changed
+467
-15
No files matched your search
@@ -853,10 +853,15 @@ public partial class ProviderDialog : MSGComponentBase, ISecretId
|
||||
private ModelProfile GetCurrentModelProfile() => this.CreateProviderSettings().GetModelProfile();
|
||||
|
||||
/// <summary>
|
||||
/// What the rules alone say about the model, which is what each switch shows as its automatic answer.
|
||||
/// What holds without anybody switching anything, which is what each field shows as its automatic answer.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The rules, plus whatever the provider itself stated when the model list was loaded a moment
|
||||
/// ago. A self-hosted engine is the case this matters for: it reports the window it was started
|
||||
/// with, and that is the number a person gets by leaving the field below empty.
|
||||
/// </remarks>
|
||||
/// <returns>The profile.</returns>
|
||||
private ModelProfile GetAutomaticModelProfile() => this.DataLLMProvider.GetModelProfile(this.GetSelectedModel());
|
||||
private ModelProfile GetAutomaticModelProfile() => this.CreateProviderSettings().GetAutomaticModelProfile();
|
||||
|
||||
private string GetCurrentModelApiLabel()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user