client.CreateEmbedding(...)
例
主なパラメーター
model(必須):埋め込みモデルのID(例:openai/text-embedding-3-large)。input(必須):文字列または文字列の配列。encoding_format:float(デフォルト)またはbase64。dimensions:埋め込みの長さを切り詰めるための任意の整数(モデルに依存)。user:エンドユーザー用の任意のタグ。
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
C# SDKで/embeddingsを呼び出します。
client.CreateEmbedding(...)
using PhaseoSdk;
var client = new Phaseo(apiKey);
var response = await client.CreateEmbedding(new Dictionary<string, object>
{
["model"] = "openai/text-embedding-3-large",
["input"] = "Sample text"
});
model(必須):埋め込みモデルのID(例:openai/text-embedding-3-large)。input(必須):文字列または文字列の配列。encoding_format:float(デフォルト)またはbase64。dimensions:埋め込みの長さを切り詰めるための任意の整数(モデルに依存)。user:エンドユーザー用の任意のタグ。