Spaces:
Sleeping
Sleeping
File size: 357 Bytes
dfbb39a |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
from langchain.chat_models import init_chat_model
def get_default_model():
"""Get the default chat model"""
return init_chat_model(
"gemini-2.5-flash",
model_provider="google_genai",
)
def get_model(model_name: str, provider: str):
"""Get a specific model"""
return init_chat_model(model_name, model_provider=provider)
|