@mate-academy/llm-gateway 2.1.0 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -149,7 +149,12 @@ class MyUseCase {
|
|
|
149
149
|
const completion = await this.llmCompletionService.sendMessage({
|
|
150
150
|
message: {
|
|
151
151
|
role: LLMRoles.User,
|
|
152
|
-
content:
|
|
152
|
+
content: [
|
|
153
|
+
{
|
|
154
|
+
type: LLMMessageContentType.TEXT,
|
|
155
|
+
text: prompt,
|
|
156
|
+
}
|
|
157
|
+
],
|
|
153
158
|
},
|
|
154
159
|
model: this.getPreferredModel(),
|
|
155
160
|
});
|
|
@@ -197,7 +202,12 @@ class MyUseCase {
|
|
|
197
202
|
const result = await completionService.sendMessage({
|
|
198
203
|
message: {
|
|
199
204
|
role: LLMRoles.User,
|
|
200
|
-
content:
|
|
205
|
+
content: [
|
|
206
|
+
{
|
|
207
|
+
type: LLMMessageContentType.TEXT,
|
|
208
|
+
text: 'Hello, how are you?',
|
|
209
|
+
}
|
|
210
|
+
],
|
|
201
211
|
},
|
|
202
212
|
model: preferredModel,
|
|
203
213
|
});
|
|
@@ -357,7 +367,6 @@ Supports all service types: completion, assistance, speech-to-text, and text-to-
|
|
|
357
367
|
|
|
358
368
|
**Available Models:**
|
|
359
369
|
- GPT-4 models for completion and assistance
|
|
360
|
-
- Whisper models for speech-to-text transcription
|
|
361
370
|
- TTS models for text-to-speech generation
|
|
362
371
|
|
|
363
372
|
### Google Generative AI
|