mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-09-13 22:33:37 +00:00
Some checks are pending
Build and Release / Determine run mode (push) Waiting to run
Build and Release / Sync Flatpak repo (push) Blocked by required conditions
Build and Release / Collect Flatpak artifacts (push) Blocked by required conditions
Build and Release / Verify (push) Waiting to run
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-apple-darwin, osx-arm64, macos-latest, aarch64-apple-darwin, dmg,app,updater, dmg) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-pc-windows-msvc.exe, win-arm64, windows-latest, aarch64-pc-windows-msvc, nsis,updater, nsis) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-unknown-linux-gnu, linux-arm64, ubuntu-22.04-arm, aarch64-unknown-linux-gnu, appimage,updater, appimage) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-apple-darwin, osx-x64, macos-latest, x86_64-apple-darwin, dmg,app,updater, dmg) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-pc-windows-msvc.exe, win-x64, windows-latest, x86_64-pc-windows-msvc, nsis,updater, nsis) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-unknown-linux-gnu, linux-x64, ubuntu-22.04, x86_64-unknown-linux-gnu, appimage,updater, appimage) (push) Blocked by required conditions
Build and Release / Prepare & create release (push) Blocked by required conditions
Build and Release / Publish release (push) Blocked by required conditions
36 lines
1.5 KiB
C#
36 lines
1.5 KiB
C#
using AIStudio.Provider;
|
|
|
|
namespace AIStudio.Models.Kinds;
|
|
|
|
/// <summary>
|
|
/// The models from before chat completions existed.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// Providers keep offering some of them -- Helmholtz Blablador still reports text-davinci-003 --
|
|
/// but asking any of them for a chat completion fails. They only answer through the completions
|
|
/// endpoint, which the app does not speak, so they must not stand among the chat models.
|
|
///
|
|
/// "ada" is deliberately not among these names: three letters appear in far too many unrelated ones,
|
|
/// and losing a chat model weighs heavier than keeping a dead one in the list.
|
|
/// </remarks>
|
|
public sealed class TextCompletionModelsFamily : ModelFamily
|
|
{
|
|
/// <inheritdoc />
|
|
public override ModelVendor Vendor => ModelVendor.UNKNOWN;
|
|
|
|
/// <inheritdoc />
|
|
public override ModelSource Source => new("https://platform.openai.com/docs/api-reference/completions", new DateOnly(2026, 9, 12), "Ported unchanged from the text completion markers of Provider/ModelKindExtensions.cs.");
|
|
|
|
/// <inheritdoc />
|
|
protected override void Declare(ModelFamilyBuilder builder)
|
|
{
|
|
builder.Modifier("davinci").AsSubstring().Kind(ModelKind.TEXT_COMPLETION);
|
|
|
|
builder.Modifier("babbage").AsSubstring().Inherits();
|
|
|
|
builder.Modifier("curie").AsSubstring().Inherits();
|
|
|
|
// The one model of the 3.5 line which never learned to chat, next to the ones which did:
|
|
builder.Modifier("gpt-3.5-turbo-instruct").AsSegment().Inherits();
|
|
}
|
|
} |