mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-11 09:33:48 +00:00
added functionality to save/move tokenizer file
This commit is contained in:
1 parent
09258c7548
commit
0854debc00
23 files changed
+839
-264
No files matched your search
@@ -22,6 +22,8 @@ public sealed class ProviderValidation
|
||||
|
||||
public Func<bool> IsModelProvidedManually { get; init; } = () => false;
|
||||
|
||||
public Func<string> GetCustomTokenizerValidationIssue { get; init; } = () => string.Empty;
|
||||
|
||||
public string? ValidatingHostname(string hostname)
|
||||
{
|
||||
if(this.GetProvider() != LLMProviders.SELF_HOSTED)
|
||||
@@ -120,4 +122,13 @@ public sealed class ProviderValidation
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public string? ValidatingCustomTokenizer(string _)
|
||||
{
|
||||
var issue = this.GetCustomTokenizerValidationIssue();
|
||||
if (string.IsNullOrWhiteSpace(issue))
|
||||
return null;
|
||||
|
||||
return issue;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user