Skip to content

Commit 9ca06a3

Browse files
Merge pull request #133 from generative-computing/hen/small_fixes
fix: adding litellm to `.start_session()`
2 parents a0838b0 + 1c64c5b commit 9ca06a3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

mellea/stdlib/session.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,16 @@ def backend_name_to_class(name: str) -> Any:
7070
from mellea.backends.watsonx import WatsonxAIBackend
7171

7272
return WatsonxAIBackend
73+
elif name == "litellm":
74+
from mellea.backends.litellm import LiteLLMBackend
75+
76+
return LiteLLMBackend
7377
else:
7478
return None
7579

7680

7781
def start_session(
78-
backend_name: Literal["ollama", "hf", "openai", "watsonx"] = "ollama",
82+
backend_name: Literal["ollama", "hf", "openai", "watsonx", "litellm"] = "ollama",
7983
model_id: str | ModelIdentifier = IBM_GRANITE_3_3_8B,
8084
ctx: Context | None = SimpleContext(),
8185
*,

0 commit comments

Comments
 (0)