From c03be10fc12fbe36d635ea3918bb294315f2f70e Mon Sep 17 00:00:00 2001 From: taylor <=> Date: Mon, 14 Oct 2024 17:23:13 +0800 Subject: [PATCH] =?UTF-8?q?add:=20=E5=A2=9E=E5=8A=A0lmstudio=20chat=20api?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/maubot-llmplus.iml | 2 +- .idea/misc.xml | 2 +- base-config.yaml | 2 +- maubot_llmplus/thrid_platform.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.idea/maubot-llmplus.iml b/.idea/maubot-llmplus.iml index 6d99fbe..9d99f9e 100644 --- a/.idea/maubot-llmplus.iml +++ b/.idea/maubot-llmplus.iml @@ -4,7 +4,7 @@ - + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index 90553d3..74d11cf 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,4 +1,4 @@ - + \ No newline at end of file diff --git a/base-config.yaml b/base-config.yaml index fbdb912..4763066 100644 --- a/base-config.yaml +++ b/base-config.yaml @@ -2,7 +2,7 @@ allowed_users: [] use_platform: local_ai -name: "ollama" +name: "ai bot" reply_in_thread: true diff --git a/maubot_llmplus/thrid_platform.py b/maubot_llmplus/thrid_platform.py index 4fc3954..abe0956 100644 --- a/maubot_llmplus/thrid_platform.py +++ b/maubot_llmplus/thrid_platform.py @@ -109,7 +109,7 @@ class Anthropic(Platform): async def list_models(self) -> List[str]: # 由于没有列出所有支持的模型的api,所有只能写死在代码中 - models = ["Claude 3.5 Opus", "Claude 3.5 Sonnet", "Claude 3.5 Haiku", "Claude 3 Opus", "Claude 3 Sonnet ", "Claude 3 Haiku"] + models = ["claude-3-5-sonnet-20240620", "claude-3-opus-20240229 ", "claude-3-sonnet-20240229", "claude-3-haiku-20240307"] return [f"- {m}" for m in models] def get_type(self) -> str: