Skip to content
Merged
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
6 changes: 5 additions & 1 deletion mellea/stdlib/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,16 @@ def backend_name_to_class(name: str) -> Any:
from mellea.backends.watsonx import WatsonxAIBackend

return WatsonxAIBackend
elif name == "litellm":
from mellea.backends.litellm import LiteLLMBackend

return LiteLLMBackend
else:
return None


def start_session(
backend_name: Literal["ollama", "hf", "openai", "watsonx"] = "ollama",
backend_name: Literal["ollama", "hf", "openai", "watsonx", "litellm"] = "ollama",
model_id: str | ModelIdentifier = IBM_GRANITE_3_3_8B,
ctx: Context | None = SimpleContext(),
*,
Expand Down
Loading