mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-02-24 04:00:02 +01:00
23 lines
609 B
C#
23 lines
609 B
C#
|
|
// Copyright (c) Microsoft Corporation
|
||
|
|
// The Microsoft Corporation licenses this file to you under the MIT license.
|
||
|
|
// See the LICENSE file in the project root for more information.
|
||
|
|
|
||
|
|
using Microsoft.Extensions.AI;
|
||
|
|
|
||
|
|
namespace LanguageModelProvider;
|
||
|
|
|
||
|
|
public interface ILanguageModelProvider
|
||
|
|
{
|
||
|
|
string Name { get; }
|
||
|
|
|
||
|
|
string UrlPrefix { get; }
|
||
|
|
|
||
|
|
string ProviderDescription { get; }
|
||
|
|
|
||
|
|
Task<IEnumerable<ModelDetails>> GetModelsAsync(bool ignoreCached = false, CancellationToken cancelationToken = default);
|
||
|
|
|
||
|
|
IChatClient? GetIChatClient(string url);
|
||
|
|
|
||
|
|
string GetIChatClientString(string url);
|
||
|
|
}
|