@scoopika/scoopika
Advanced tools
Comparing version 2.1.5 to 2.1.6
@@ -705,7 +705,7 @@ import { Store, SavedProvider, ProvidersName, VoiceResponse, Audio, StoreSession, RunHistory, RunInputs, RunOptions, Hooks, ToolSchema, ModelTextResponse, ModelObjectResponse, CoreTool, HooksHub } from '@scoopika/types'; | ||
private tools; | ||
private prompt; | ||
private prompt?; | ||
constructor(scoopika: Scoopika, { provider, model, prompt, knowledge, memory, voice, }: { | ||
provider: ProvidersName; | ||
model: string; | ||
prompt: string; | ||
prompt?: string; | ||
knowledge?: string; | ||
@@ -712,0 +712,0 @@ memory?: Store; |
@@ -1312,3 +1312,3 @@ "use strict"; | ||
}) { | ||
const system_prompt = prompt || this.prompt; | ||
const system_prompt = prompt || this.prompt || ""; | ||
const run_id = `run_${(0, import_crypto.randomUUID)()}`; | ||
@@ -1418,3 +1418,3 @@ const client = await this.getLLMClient(); | ||
const { messages, new_message } = await this.getInputs({ inputs, options }); | ||
let system_prompt = prompt || generate_object_prompt; | ||
let system_prompt = prompt || this.prompt || generate_object_prompt; | ||
if (!this.model.includes("fireworks")) { | ||
@@ -1421,0 +1421,0 @@ system_prompt += ` |
{ | ||
"name": "@scoopika/scoopika", | ||
"version": "2.1.5", | ||
"version": "2.1.6", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
157078