mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-04 21:27:21 +00:00
Generated the JSON contracts of providers, the runtime, and services at compile time (#1150)
This commit is contained in:
1 parent
e954881fda
commit
24e3c22db3
140 files changed
+1415
-292
No files matched your search
@@ -0,0 +1,14 @@
|
||||
namespace AIStudio.Provider;
|
||||
|
||||
/// <summary>
|
||||
/// A request for embeddings, in the shape of the OpenAI API, which most providers take.
|
||||
/// </summary>
|
||||
/// <param name="Model">The name of the embedding model.</param>
|
||||
/// <param name="Input">The texts to embed.</param>
|
||||
public sealed record EmbeddingRequest(string Model, IList<string> Input)
|
||||
{
|
||||
/// <summary>
|
||||
/// Asks for the vectors as numbers, instead of as base64.
|
||||
/// </summary>
|
||||
public string EncodingFormat => "float";
|
||||
}
|
||||
Reference in new issue
Block a user