Spaces:
Runtime error
Runtime error
Update app.py
Browse filesadded api base url for gemini smolagent client
24 unmodified lines252627282930313224 unmodified linesclass BasicAgent:def __init__(self):self.llm_model = LiteLLMModel(model_id="gemini/gemini-2.0-flash", # you can see other model names here: https://cloud.google.com/vertex-ai/generative-ai/docs/learn/models. It is important to prefix the name with "gemini/"api_key=GEMINI_API_KEY,max_tokens=8192)# self.google_search_tool = Tool(google_search = GoogleSearch())24 unmodified lines25262728293031323324 unmodified linesclass BasicAgent:def __init__(self):self.llm_model = LiteLLMModel(model_id="gemini/gemini-2.5-flash", # you can see other model names here: https://cloud.google.com/vertex-ai/generative-ai/docs/learn/models. It is important to prefix the name with "gemini/"api_key=GEMINI_API_KEY,api_base = 'https://generativelanguage.googleapis.com',max_tokens=8192)# self.google_search_tool = Tool(google_search = GoogleSearch())
app.py+2-1