@absolutejs/voice 0.0.22-beta.620 → 0.0.22-beta.621
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/dist/index.js +7 -1
- package/dist/testing/index.js +7 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -46252,9 +46252,15 @@ var createAnthropicVoiceAssistantModel = (options) => {
|
|
|
46252
46252
|
messages: input.messages.map(messageToAnthropicMessage).filter(Boolean),
|
|
46253
46253
|
model,
|
|
46254
46254
|
stream: true,
|
|
46255
|
-
system: [
|
|
46255
|
+
system: [
|
|
46256
|
+
{
|
|
46257
|
+
cache_control: { type: "ephemeral" },
|
|
46258
|
+
text: [input.system, VOICE_SYSTEM_INSTRUCTIONS].filter(Boolean).join(`
|
|
46256
46259
|
|
|
46257
46260
|
`),
|
|
46261
|
+
type: "text"
|
|
46262
|
+
}
|
|
46263
|
+
],
|
|
46258
46264
|
temperature: options.temperature,
|
|
46259
46265
|
tool_choice: input.tools.length ? { type: "auto" } : { type: "none" },
|
|
46260
46266
|
tools: input.tools.map((tool) => ({
|
package/dist/testing/index.js
CHANGED
|
@@ -5209,9 +5209,15 @@ var createAnthropicVoiceAssistantModel = (options) => {
|
|
|
5209
5209
|
messages: input.messages.map(messageToAnthropicMessage).filter(Boolean),
|
|
5210
5210
|
model,
|
|
5211
5211
|
stream: true,
|
|
5212
|
-
system: [
|
|
5212
|
+
system: [
|
|
5213
|
+
{
|
|
5214
|
+
cache_control: { type: "ephemeral" },
|
|
5215
|
+
text: [input.system, VOICE_SYSTEM_INSTRUCTIONS].filter(Boolean).join(`
|
|
5213
5216
|
|
|
5214
5217
|
`),
|
|
5218
|
+
type: "text"
|
|
5219
|
+
}
|
|
5220
|
+
],
|
|
5215
5221
|
temperature: options.temperature,
|
|
5216
5222
|
tool_choice: input.tools.length ? { type: "auto" } : { type: "none" },
|
|
5217
5223
|
tools: input.tools.map((tool) => ({
|