mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-12 23:33:48 +00:00
Added IONOS as a provider and unified how providers sort their model lists (#941)
This commit is contained in:
1 parent
edbb75dd9f
commit
53da222562
29 files changed
+410
-50
No files matched your search
@@ -0,0 +1,69 @@
|
||||
namespace AIStudio.Provider;
|
||||
|
||||
/// <summary>
|
||||
/// The kind of an AI model, i.e. what the model is made for.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This describes what kind of model we are dealing with. It answers a different question than the
|
||||
/// Capability enum: capabilities describe what a chat model is able to do, for example whether it
|
||||
/// accepts images or performs reasoning. Note that Capability.EMBEDDING marks a chat model which is
|
||||
/// able to create embeddings as well, whereas ModelKind.EMBEDDING marks a model whose only purpose
|
||||
/// is creating embeddings.
|
||||
/// </remarks>
|
||||
public enum ModelKind
|
||||
{
|
||||
/// <summary>
|
||||
/// The model is used for chat completions.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This is the fallback: we report a model as a chat model whenever we do not recognize any
|
||||
/// other kind. Providers keep adding models we have never heard of, and a model we fail to
|
||||
/// recognize must stay visible to the user instead of silently disappearing from their list.
|
||||
/// </remarks>
|
||||
CHAT,
|
||||
|
||||
/// <summary>
|
||||
/// The model continues a text instead of answering in a conversation.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// These are the models from the era before chat completions, such as OpenAI's text-davinci-003.
|
||||
/// Some providers still offer them, but they only work through the completions endpoint. Asking
|
||||
/// them for a chat completion fails, so they must not show up as chat models.
|
||||
/// </remarks>
|
||||
TEXT_COMPLETION,
|
||||
|
||||
/// <summary>
|
||||
/// The model maps text or images into a vector space.
|
||||
/// </summary>
|
||||
EMBEDDING,
|
||||
|
||||
/// <summary>
|
||||
/// The model scores documents against a query to reorder search results.
|
||||
/// </summary>
|
||||
RERANKING,
|
||||
|
||||
/// <summary>
|
||||
/// The model generates or edits images.
|
||||
/// </summary>
|
||||
IMAGE_GENERATION,
|
||||
|
||||
/// <summary>
|
||||
/// The model transcribes audio into text.
|
||||
/// </summary>
|
||||
TRANSCRIPTION,
|
||||
|
||||
/// <summary>
|
||||
/// The model synthesizes speech from text.
|
||||
/// </summary>
|
||||
SPEECH_SYNTHESIS,
|
||||
|
||||
/// <summary>
|
||||
/// The model extracts text from images or scanned documents.
|
||||
/// </summary>
|
||||
OCR,
|
||||
|
||||
/// <summary>
|
||||
/// The model classifies content for policy violations.
|
||||
/// </summary>
|
||||
MODERATION,
|
||||
}
|
||||
Reference in new issue
Block a user