Spaces:
Running
Running
Update dynamic_cheatsheet/language_model.py
Browse files
dynamic_cheatsheet/language_model.py
CHANGED
@@ -50,7 +50,7 @@ class LanguageModel:
|
|
50 |
]
|
51 |
|
52 |
# Load the client for the model based on the model name
|
53 |
-
if self.model_name.startswith("
|
54 |
samba_api_key = os.environ.get("SAMBANOVA_API_KEY")
|
55 |
samba_base_url = os.environ.get("SAMBANOVA_BASE_URL", "https://api.sambanova.ai/v1") # Default if not set
|
56 |
if not samba_api_key:
|
|
|
50 |
]
|
51 |
|
52 |
# Load the client for the model based on the model name
|
53 |
+
if self.model_name.startswith("sambanova/"):
|
54 |
samba_api_key = os.environ.get("SAMBANOVA_API_KEY")
|
55 |
samba_base_url = os.environ.get("SAMBANOVA_BASE_URL", "https://api.sambanova.ai/v1") # Default if not set
|
56 |
if not samba_api_key:
|