mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-02-12 18:21:36 +00:00
Removed not necessary T param
This commit is contained in:
parent
99ab8712aa
commit
3fd35f509f
@ -125,7 +125,7 @@ public sealed record Provider(
|
|||||||
var hfInferenceProvider = HFInferenceProvider.NONE;
|
var hfInferenceProvider = HFInferenceProvider.NONE;
|
||||||
if (table.TryGetValue("HFInferenceProvider", out var hfInferenceProviderValue) && hfInferenceProviderValue.TryRead<string>(out var hfInferenceProviderText))
|
if (table.TryGetValue("HFInferenceProvider", out var hfInferenceProviderValue) && hfInferenceProviderValue.TryRead<string>(out var hfInferenceProviderText))
|
||||||
{
|
{
|
||||||
if (!Enum.TryParse<HFInferenceProvider>(hfInferenceProviderText, true, out hfInferenceProvider))
|
if (!Enum.TryParse(hfInferenceProviderText, true, out hfInferenceProvider))
|
||||||
{
|
{
|
||||||
LOGGER.LogWarning($"The configured provider {idx} does not contain a valid Hugging Face inference provider enum value.");
|
LOGGER.LogWarning($"The configured provider {idx} does not contain a valid Hugging Face inference provider enum value.");
|
||||||
hfInferenceProvider = HFInferenceProvider.NONE;
|
hfInferenceProvider = HFInferenceProvider.NONE;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user