Merge branch 'nate/openai-adapters' into nate/config-yaml

This commit is contained in:
Nate 2024-12-09 08:28:10 -08:00
commit 8aec6a575c

View file

@ -63,7 +63,14 @@ class OpenAI extends BaseLLM {
maxEmbeddingBatchSize: 128,
};
protected useOpenAIAdapterFor: (LlmApiRequestType | "*")[] = ["*"];
protected useOpenAIAdapterFor: (LlmApiRequestType | "*")[] = [
"chat",
"embed",
"list",
"rerank",
"streamChat",
"streamFim",
];
protected _convertModelName(model: string): string {
return model;