Skip to content

Commit

Permalink
add: [llm] moonshot
Browse files Browse the repository at this point in the history
  • Loading branch information
luochen1990 committed Oct 10, 2024
1 parent 0037bf8 commit 55bb79d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/ai_powered/llm/known_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ def equals(s: str) -> Callable[[str], bool]:
''' create a function to check if a string contains a substring '''
return lambda text: s == text

KNOWN_PLATFORMS : list[KnownPlatform] = [

KNOWN_PLATFORMS: list[KnownPlatform] = [
KnownPlatform(
platform_name = "openai",
match_platform_url = contains("openai"),
Expand All @@ -66,6 +67,13 @@ def equals(s: str) -> Callable[[str], bool]:
KnownModel("deepseek-coder", {ModelFeature.tools}),
]
),
KnownPlatform(
platform_name = "moonshot",
match_platform_url = contains("moonshot"),
known_model_list = [
KnownModel("moonshot-v1-auto", {ModelFeature.tools}),
]
),
KnownPlatform(
platform_name = "localhost",
match_platform_url = contains("localhost"),
Expand Down

0 comments on commit 55bb79d

Please sign in to comment.