Skip to content

Commit 8562a34

Browse files
committed
Add "overrides" in the SDK prompt
1 parent b262a31 commit 8562a34

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

lib/services/VirtualService.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,12 @@ export class VirtualService {
196196
formData.append("skipTTS", configs?.skipTTS ? "true" : "false");
197197
formData.append("userName", this.configs.userName ?? "");
198198
formData.append("botName", this.configs.virtualName ?? "");
199+
200+
if (configs?.overrides) {
201+
Object.keys(configs.overrides).forEach((key) => {
202+
formData.append(key, configs.overrides[key]);
203+
});
204+
}
199205
}
200206
const resp = await fetch(`${this.runnerUrl}/prompts`, {
201207
method: "POST",

lib/types/ConfigType.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ export type ConfigType = {
22
skipTTS: boolean;
33
ttsMode?: boolean;
44
speakOnResponse: boolean;
5+
overrides?: any;
56
};

0 commit comments

Comments
 (0)