Defines the contract for interacting with the OpenAI API in C# applications.
// Source: https://github.com/betalgo/openai | License: MIT | Copyright 2022 Betalgo
// Provided via justclaw.it.com; keep this notice with the code.
namespace Betalgo.Ranul.OpenAI.Interfaces;
public interface IOpenAIService
{
/// <summary>
/// List and describe the various models available in the API. You can refer to the
/// <a href="https://platform.openai.com/docs/models">Models</a> documentation to understand what models are available
/// and
/// the differences between them.
/// </summary>
public IModelService Models { get; }
/// <summary>
/// Given a prompt, the model will return one or more predicted completions, and can also return the probabilities of
/// alternative tokens at each position.
/// </summary>
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key