Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
OpenRouterProviderPreferences,
OpenRouterWebPlugin,
PerplexityChatModels,
SimplismartChatModels,
TelnyxChatModels,
TogetherChatModels,
XAIChatModels,
Expand Down Expand Up @@ -876,50 +875,6 @@ def with_letta(
tool_choice=NOT_GIVEN,
)

@staticmethod
def with_simplismart(
*,
model: str | SimplismartChatModels = "meta-llama/Llama-3.1-8B-Instruct",
api_key: str | None = None,
base_url: str = "https://api.simplismart.live",
client: openai.AsyncClient | None = None,
user: NotGivenOr[str] = NOT_GIVEN,
temperature: NotGivenOr[float] = NOT_GIVEN,
parallel_tool_calls: NotGivenOr[bool] = NOT_GIVEN,
tool_choice: ToolChoice = "auto",
reasoning_effort: NotGivenOr[ReasoningEffort] = NOT_GIVEN,
safety_identifier: NotGivenOr[str] = NOT_GIVEN,
prompt_cache_key: NotGivenOr[str] = NOT_GIVEN,
top_p: NotGivenOr[float] = NOT_GIVEN,
) -> LLM:
"""
Create a new instance of Simplismart LLM.

``api_key`` must be set to your Simplismart API key, either using the argument or by setting
the ``SIMPLISMART_API_KEY`` environmental variable.
"""

api_key = api_key or os.environ.get("SIMPLISMART_API_KEY")
if api_key is None:
raise ValueError(
"Simplismart API key is required, either as argument or set SIMPLISMART_API_KEY environmental variable" # noqa: E501
)

return LLM(
model=model,
api_key=api_key,
base_url=base_url,
client=client,
user=user,
temperature=temperature,
parallel_tool_calls=parallel_tool_calls,
tool_choice=tool_choice,
reasoning_effort=reasoning_effort,
safety_identifier=safety_identifier,
prompt_cache_key=prompt_cache_key,
top_p=top_p,
)

def chat(
self,
*,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -290,33 +290,6 @@
"grok-2-1212",
]

SimplismartChatModels = Literal[
"deepseek-ai/DeepSeek-R1-Distill-Qwen-32B",
"meta-llama/Llama-3.2-1B-Instruct",
"deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B",
"meta-llama/Llama-3.1-8B-Instruct",
"openai/gpt-oss-120b",
"google/gemma-3-27b-it",
"meta-llama/Llama-3.2-11B-Vision-Instruct",
"mistralai/Mixtral-8x7B-Instruct-v0.1",
"deepseek-ai/DeepSeek-R1-Distill-Qwen-7B",
"deepseek-ai/DeepSeek-R1-Distill-Qwen-14B",
"Qwen/Qwen2.5-VL-72B-Instruct",
"meta-llama/Llama-3.2-90B-Vision-Instruct",
"meta-llama/Meta-Llama-3.1-70B-Instruct",
"meta-llama/Llama-3.3-70B-Instruct",
"meta-llama/Meta-Llama-3.1-8B-Instruct",
"google/gemma-3-1b-it",
"google/gemma-3-4b-it",
"deepseek-ai/DeepSeek-R1-Distill-Llama-8B",
"deepseek-ai/DeepSeek-R1-Distill-Llama-70B",
"Qwen/QwQ-32B",
"meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8",
"mistralai/Devstral-Small-2505",
"Qwen/Qwen3-14B-FP8",
"Qwen/Qwen3-14B",
]


def _supports_reasoning_effort(model: Union[ChatModels, str]) -> bool:
return model in [
Expand Down