Copy chat_completion_sources enum to server code

This commit is contained in:
valadaptive
2023-12-03 15:03:32 -05:00
parent e33c8bd955
commit ebde9c2c1f
2 changed files with 20 additions and 9 deletions

View File

@ -132,6 +132,16 @@ const PALM_SAFETY = [
},
];
const CHAT_COMPLETION_SOURCES = {
OPENAI: 'openai',
WINDOWAI: 'windowai',
CLAUDE: 'claude',
SCALE: 'scale',
OPENROUTER: 'openrouter',
AI21: 'ai21',
PALM: 'palm',
};
const UPLOADS_PATH = './uploads';
// TODO: this is copied from the client code; there should be a way to de-duplicate it eventually
@ -149,4 +159,5 @@ module.exports = {
UPLOADS_PATH,
PALM_SAFETY,
TEXTGEN_TYPES,
CHAT_COMPLETION_SOURCES,
};