From f0fa3de6375912e142cc18e228bb282c9e158957 Mon Sep 17 00:00:00 2001 From: guanjihuan Date: Sat, 4 Apr 2026 23:22:52 +0800 Subject: [PATCH] Update python_agent.py --- 2026.04.01_python_agent/python_agent.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/2026.04.01_python_agent/python_agent.py b/2026.04.01_python_agent/python_agent.py index f6c7e63..88cf854 100644 --- a/2026.04.01_python_agent/python_agent.py +++ b/2026.04.01_python_agent/python_agent.py @@ -1,3 +1,8 @@ +""" +This code is supported by the website: https://www.guanjihuan.com +The newest version of this code is on the web page: https://www.guanjihuan.com/archives/48813 +""" + import json import os from datetime import datetime @@ -10,7 +15,7 @@ client = OpenAI( api_key=os.getenv("OPENAI_API_KEY"), base_url=os.getenv("DASHSCOPE_BASE_URL"), ) -MODEL = "ark-code-latest" +MODEL = "xxx" # --- 2. 工具定义 --- def get_current_time():