Spaces:
Build error
Build error
zasharepw77 commited on
Commit ·
4fba449
1
Parent(s): 184931c
тестпростого запуска 3
Browse files1234567from smolagents import ToolCallingAgent, DuckDuckGoSearchTool, HfApiModelimport osagent = ToolCallingAgent(tools=[DuckDuckGoSearchTool()], model=HfApiModel(token=os.getenv('hf_token')))result = agent.run("Search for the best music recommendations for a party at the Wayne's mansion.")1234567891011121314151617181920from smolagents import ToolCallingAgent, DuckDuckGoSearchTool, HfApiModelimport os#model=HfApiModel(token=os.getenv('hf_token'))os.environ['SAMBANOVA_API_KEY'] = os.getenv('sambanova_token')model = LiteLLMModel(model_id="sambanova/Qwen2.5-Coder-32B-Instruct",max_tokens=2096,temperature=0.1,# api_base="https://api.sambanova.ai/v1",num_ctx=8192)agent = ToolCallingAgent(tools=[DuckDuckGoSearchTool()],model=model)result = agent.run("Search for the best music recommendations for a party at the Wayne's mansion.")
app.py+14-1