You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// @remark `ResponseFormat::JSON` を指定した場合、メッセージには "JSON" という言葉を含める必要があります。 | If `ResponseFormat::JSON` is specified, the message must contain the word "JSON".
@@ -101,11 +98,11 @@ namespace s3d
101
98
/// @brief ChatGPT にメッセージを送り、その返答メッセージを取得します。 | Sends a message to ChatGPT and retrieves the response message.
102
99
/// @param apiKey OpenAI API キー | OpenAI API key
103
100
/// @param message メッセージ | Message
104
-
/// @param model 使用するモデル | The model to be used (default: Model::GPT3_5_Turbo_16K_1106)
101
+
/// @param model 使用するモデル | The model to be used (default: Model::GPT3_5_Turbo)
105
102
/// @return 返答メッセージ。取得に失敗した場合は空の文字列 | Response message. An empty string if the retrieval fails.
106
103
/// @remark インターネットアクセスが必要です。 | Internet access is required.
107
104
[[nodiscard]]
108
-
String Complete(StringView apiKey, StringView message, StringView model = Model::GPT3_5_Turbo_16K_1106);
105
+
String Complete(StringView apiKey, StringView message, StringView model = Model::GPT3_5_Turbo);
109
106
110
107
/// @brief ChatGPT にメッセージを送り、その返答メッセージを取得します。 | Sends messages to ChatGPT and retrieves the response message.
111
108
/// @param apiKey OpenAI API キー | OpenAI API key
@@ -127,12 +124,12 @@ namespace s3d
127
124
/// @brief ChatGPT にメッセージを送り、レスポンス(JSON)を取得する非同期タスクを返します。 | Returns an asynchronous task for sending a message to ChatGPT and retrieving the response (JSON).
128
125
/// @param apiKey OpenAI API キー | OpenAI API key
129
126
/// @param message メッセージ | Message
130
-
/// @param model 使用するモデル | The model to be used (default: Model::GPT3_5_Turbo_16K_1106)
127
+
/// @param model 使用するモデル | The model to be used (default: Model::GPT3_5_Turbo)
131
128
/// @return 非同期タスク | Asynchronous task
132
129
/// @remark 戻り値の task が `(task.isReady() == true) && (task.getResponse().isOK() == true)` になれば結果を取得できます。 | The result can be retrieved if `(task.isReady() == true) && (task.getResponse().isOK() == true)`.
133
130
/// @remark インターネットアクセスが必要です。 | Internet access is required.
134
131
[[nodiscard]]
135
-
AsyncHTTPTask CompleteAsync(StringView apiKey, StringView message, StringView model = Model::GPT3_5_Turbo_16K_1106);
132
+
AsyncHTTPTask CompleteAsync(StringView apiKey, StringView message, StringView model = Model::GPT3_5_Turbo);
136
133
137
134
/// @brief ChatGPT にメッセージを送り、レスポンス(JSON)を取得する非同期タスクを返します。 | Returns an asynchronous task for sending messages to ChatGPT and retrieving the response (JSON).
/// @brief 文章の埋め込みベクトルを含むレスポンス(JSON)を取得する非同期タスクを返します。 | Returns an asynchronous task that retrieves a response (JSON) containing the embedding vector of the text.
54
67
/// @param apiKey OpenAI API キー | OpenAI API key
55
68
/// @param text 文章 | Text
56
-
/// @param model 使用するモデル | The model to be used (default: Model::EmbeddingAda002)
69
+
/// @param model 使用するモデル | The model to be used (default: Model::Embedding_V3_Large)
57
70
/// @return 非同期タスク | Asynchronous task
58
71
/// @remark インターネットアクセスが必要です。 | Internet access is required.
59
72
[[nodiscard]]
60
-
AsyncHTTPTask CreateAsync(StringView apiKey, StringView text, StringView model = Model::EmbeddingAda002);
73
+
AsyncHTTPTask CreateAsync(StringView apiKey, StringView text, StringView model = Model::Embedding_V3_Large);
61
74
62
75
/// @brief レスポンス(JSON)から、文章の埋め込みベクトルを抽出して返します。 | Extracts and returns the embedding vector of the text from the response (JSON).
0 commit comments