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