Spaces:
Runtime error
Runtime error
File size: 419 Bytes
7acb2e7 26e469b 7acb2e7 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
import os
from smolagents import OpenAIServerModel, CodeAgent
# test file in cas I need to run entirely locally
model = OpenAIServerModel(
model_id="Qwen/Qwen2.5-1.5B-Instruct",
api_base="http://192.168.1.39:18000/v1",
api_key="token-abc123",
)
myagent = CodeAgent(
model=model,
tools=[])
result = myagent.run("Hello who are you?") # Replace with your question
print(result) |