Files
dumb-web-generator/test.py
T
talksik 683cd4f4ec init
2026-07-22 14:04:04 +01:00

12 lines
390 B
Python

from foundry_local_sdk import Configuration, FoundryLocalManager
FoundryLocalManager.initialize(Configuration(app_name="my-app"))
model = FoundryLocalManager.instance.catalog.get_model("qwen2.5-0.5b")
model.download(); model.load()
client = model.get_chat_client()
response = client.complete_chat([
{"role": "user", "content": "Hello!"}
])
print(response.choices[0].message.content)