add openrouter support

This commit is contained in:
better629 2024-04-16 15:10:23 +08:00
parent 00f32cbb69
commit fdc758a571
4 changed files with 39 additions and 2 deletions

View file

@ -31,6 +31,7 @@ class LLMType(Enum):
MOONSHOT = "moonshot"
MISTRAL = "mistral"
YI = "yi" # lingyiwanwu
OPENROUTER = "openrouter"
def __missing__(self, key):
return self.OPENAI