Skip to content

Commit e00ce6b

Browse files
committed
Merge branch 'main' of github.com:devforth/adminforth
2 parents e58ca42 + 3dfaca9 commit e00ce6b

5 files changed

Lines changed: 15 additions & 11 deletions

File tree

adminforth/types/adapters/AudioAdapter.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ export type SpeechToTextInput = {
44
mimeType: string;
55
language?: string;
66
prompt?: string;
7+
abortSignal?: AbortSignal;
78
};
89

910
export type SpeechToTextResult = {
@@ -34,6 +35,7 @@ export type TextToSpeechInput<Voice extends string = string> = {
3435
format?: TtsAudioFormat;
3536
speed?: number;
3637
instructions?: string;
38+
abortSignal?: AbortSignal;
3739
stream?: false;
3840
};
3941

live-demo/app/package-lock.json

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

live-demo/app/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
"author": "",
1717
"description": "",
1818
"dependencies": {
19-
"@adminforth/agent": "^1.38.0",
20-
"@adminforth/audio-adapter-openai": "^1.0.1",
19+
"@adminforth/agent": "^1.39.1",
20+
"@adminforth/audio-adapter-openai": "^1.2.0",
2121
"@adminforth/audit-log": "^1.9.18",
2222
"@adminforth/background-jobs": "^1.11.4",
2323
"@adminforth/bulk-ai-flow": "^1.24.3",

live-demo/app/resources/auditLogs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ export default {
4343
}
4444
}),
4545
],
46-
}
46+
}

live-demo/app/resources/users.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ export default {
5353
new AdminForthAgent({
5454
audioAdapter: new OpenAIAudioAdapter({
5555
apiKey: openAiApiKey,
56+
defaultVoice: 'alloy',
57+
defaultSpeed: 1.25,
5658
}),
5759
placeholderMessages: async ({ httpExtra }: any) => getLocalizedPlaceholderMessages({
5860
completionAdapter: fastCompletionAdapter as any,

0 commit comments

Comments
 (0)