mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-11-23 09:30:21 +00:00
Allow providers configured without additional JSON API parameters to be accepted
This commit is contained in:
parent
70fbc74a1d
commit
0bd1ea76fc
@ -136,8 +136,9 @@ public sealed record Provider(
|
||||
|
||||
if (!table.TryGetValue("AdditionalJsonApiParameters", out var additionalJsonApiParametersValue) || !additionalJsonApiParametersValue.TryRead<string>(out var additionalJsonApiParameters))
|
||||
{
|
||||
// In this case, no reason exists to reject this provider, though.
|
||||
LOGGER.LogWarning($"The configured provider {idx} does not contain valid additional JSON API parameters.");
|
||||
return false;
|
||||
additionalJsonApiParameters = string.Empty;
|
||||
}
|
||||
|
||||
provider = new Provider
|
||||
|
||||
Loading…
Reference in New Issue
Block a user