File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import CompletionAdapterOpenAIResponses from '../adapters/adminforth-completion-adapter-openai-responses/index.js' ;
22import AdminForthAgent from '../plugins/adminforth-agent/index.js' ;
33import AdminForthPlugin from '../adminforth/basePlugin.js' ;
4+ import OpenAIAudioAdapter from '../adapters/adminforth-audio-adapter-openai/index.js' ;
45
56const OVH_AI_ENDPOINTS_BASE_URL = 'https://oai.endpoints.kepler.ai.cloud.ovh.net/v1' ;
67const ovhAiEndpointsAccessToken = process . env . OVH_AI_ENDPOINTS_ACCESS_TOKEN ;
@@ -73,5 +74,10 @@ export const globalPlugins = [
7374 responseField : 'response' ,
7475 debugField : 'dubbug' ,
7576 } ,
77+ audioAdapter : new OpenAIAudioAdapter ( {
78+ apiKey : process . env . OPENAI_API_KEY as string ,
79+ defaultVoice : 'alloy' ,
80+ defaultSpeed : 1.25 ,
81+ } ) ,
7682 } ) ,
7783] ;
You can’t perform that action at this time.
0 commit comments