mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-04-28 15:39:46 +00:00
Fixed async warning
This commit is contained in:
parent
fc2cdd46bb
commit
92748f0ba2
@ -23,7 +23,7 @@ public sealed class ProviderMistral() : BaseProvider("https://api.mistral.ai/v1/
|
|||||||
public string InstanceName { get; set; } = "Mistral";
|
public string InstanceName { get; set; } = "Mistral";
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public async IAsyncEnumerable<string> StreamChatCompletion(IJSRuntime jsRuntime, SettingsManager settings, Provider.Model chatModel, ChatThread chatThread, CancellationToken token = default)
|
public async IAsyncEnumerable<string> StreamChatCompletion(IJSRuntime jsRuntime, SettingsManager settings, Provider.Model chatModel, ChatThread chatThread, [EnumeratorCancellation] CancellationToken token = default)
|
||||||
{
|
{
|
||||||
// Get the API key:
|
// Get the API key:
|
||||||
var requestedSecret = await settings.GetAPIKey(jsRuntime, this);
|
var requestedSecret = await settings.GetAPIKey(jsRuntime, this);
|
||||||
|
Loading…
Reference in New Issue
Block a user