Skip to content

Commit 36fa702

Browse files
committed
dev-demo: update agent to use audio adapter
1 parent e387e6f commit 36fa702

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

dev-demo/Taskfile.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ vars:
5555
- "adminforth-completion-adapter-openai-responses"
5656
- "adminforth-completion-adapter-antropic-messages"
5757
- "adminforth-completion-adapter-google-gemini"
58+
- "adminforth-audio-adapter-openai"
5859

5960

6061
tasks:

dev-demo/resources/adminuser.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import OAuthPlugin from '../../plugins/adminforth-oauth/index.js';
1212
import KeyValueAdapterRam from '../../adapters/adminforth-key-value-adapter-ram/index.js';
1313
import AdminForthAgent from '../../plugins/adminforth-agent/index.js';
1414
import CompletionAdapterOpenAIResponses from '../../adapters/adminforth-completion-adapter-openai-responses/index.js';
15+
import OpenAIAudioAdapter from '../../adapters/adminforth-audio-adapter-openai/index.js';
1516

1617
const OVH_AI_ENDPOINTS_BASE_URL = 'https://oai.endpoints.kepler.ai.cloud.ovh.net/v1';
1718
const ovhAiEndpointsAccessToken = process.env.OVH_AI_ENDPOINTS_ACCESS_TOKEN;
@@ -215,6 +216,9 @@ export default {
215216
},
216217
}),
217218
new AdminForthAgent({
219+
audioAdapter: new OpenAIAudioAdapter({
220+
apiKey: process.env.OPENAI_API_KEY,
221+
}),
218222
placeholderMessages: async ({ adminUser, httpExtra }) => {
219223
return [
220224
"What is a cars count in SQLite",

0 commit comments

Comments
 (0)