From 5d0f62943979636fd8e3bcf59366d448ee8dfaa3 Mon Sep 17 00:00:00 2001 From: guanjihuan Date: Mon, 16 Mar 2026 12:50:33 +0800 Subject: [PATCH] 0.1.202 --- PyPI/setup.cfg | 2 +- PyPI/src/guan.egg-info/PKG-INFO | 2 +- PyPI/src/guan/AI_chat.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/PyPI/setup.cfg b/PyPI/setup.cfg index 26fa1f9..bd80faa 100644 --- a/PyPI/setup.cfg +++ b/PyPI/setup.cfg @@ -1,7 +1,7 @@ [metadata] # replace with your username: name = guan -version = 0.1.201 +version = 0.1.202 author = guanjihuan author_email = guanjihuan@163.com description = An open source python package diff --git a/PyPI/src/guan.egg-info/PKG-INFO b/PyPI/src/guan.egg-info/PKG-INFO index f882b48..642414a 100644 --- a/PyPI/src/guan.egg-info/PKG-INFO +++ b/PyPI/src/guan.egg-info/PKG-INFO @@ -1,6 +1,6 @@ Metadata-Version: 2.4 Name: guan -Version: 0.1.201 +Version: 0.1.202 Summary: An open source python package Home-page: https://py.guanjihuan.com Author: guanjihuan diff --git a/PyPI/src/guan/AI_chat.py b/PyPI/src/guan/AI_chat.py index 6072f5b..efc1bde 100644 --- a/PyPI/src/guan/AI_chat.py +++ b/PyPI/src/guan/AI_chat.py @@ -85,6 +85,7 @@ def openai_chat(prompt="你好", model="qwen-plus", temperature=0.7, system_mess messages=messages, temperature=temperature, stream=True, + extra_body={"enable_thinking": False}, ) response = '' for chunk in completion: @@ -100,7 +101,6 @@ def openai_chat(prompt="你好", model="qwen-plus", temperature=0.7, system_mess # 通过 LangChain 加载模型(需要 API Key) def load_langchain_model(model="qwen-plus", temperature=0.7, load_env=1): from langchain_openai import ChatOpenAI - from langchain_core.prompts import ChatPromptTemplate import os if load_env: import dotenv