Skip to content

Commit

Permalink
style: dotnet format
Browse files Browse the repository at this point in the history
  • Loading branch information
kaspermarstal committed Oct 24, 2024
1 parent 31fc3ce commit 8e9cb4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Cellm/Models/Client.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ public async Task<Prompt> Send(Prompt prompt, string? provider, Uri? baseAddress
{
throw new ArgumentException($"Unsupported provider: {provider}");
}

IModelResponse response = parsedProvider switch
{
Providers.Anthropic => await _sender.Send(new AnthropicRequest(prompt, provider, baseAddress)),
Providers.GoogleAi => await _sender.Send(new GoogleAiRequest(prompt, provider, baseAddress)),
Providers.Llamafile => await _sender.Send(new LlamafileRequest(prompt)),
Providers.OpenAi => await _sender.Send(new OpenAiRequest(prompt, provider, baseAddress)),
Providers.OpenAi => await _sender.Send(new OpenAiRequest(prompt, provider, baseAddress)),
_ => throw new InvalidOperationException($"Provider {parsedProvider} is defined but not implemented")
};

Expand Down

0 comments on commit 8e9cb4f

Please sign in to comment.