Files
sweet-hut-agent/agent/model.py
2026-07-02 22:17:33 +08:00

22 lines
653 B
Python

from langchain.chat_models import init_chat_model
# model = init_chat_model(
# model="glm-5.1",
# model_provider="openai",
# base_url="https://dashscope.aliyuncs.com/compatible-mode/v1",
# api_key="sk-52bcd98e9c1d45908437c4e8706eefff"
# )
# model = init_chat_model(
# model="GLM-5-Turbo",
# model_provider="openai",
# base_url="https://open.bigmodel.cn/api/coding/paas/v4",
# api_key="ea3f96fd542f4bab805a719cf3063cd6.HCRhCV7nqwkDsVKm",
# )
model = init_chat_model(
model="deepseek-v4-flash",
model_provider="openai",
base_url="https://api.deepseek.com",
api_key="sk-0b237d41f6bc44fc9732ea66bd7eade0"
)