Dolor D Prince
deploy: dolor3v gateway v1.0
c7052c4
Raw
History Blame Contribute Delete
452 Bytes
import { ProviderAPIConfig } from '../types';
const MonsterAPIApiConfig: ProviderAPIConfig = {
getBaseURL: () => 'https://llm.monsterapi.ai/v1',
headers: ({ providerOptions }) => {
return { Authorization: `Bearer ${providerOptions.apiKey}` };
},
getEndpoint: ({ fn }) => {
switch (fn) {
case 'chatComplete':
return '/chat/completions';
default:
return '';
}
},
};
export default MonsterAPIApiConfig;