From e171790a156b8c69b3f8555b416b7018d66e711c Mon Sep 17 00:00:00 2001 From: guanjihuan Date: Thu, 20 Feb 2025 05:39:30 +0800 Subject: [PATCH] 0.1.144 --- PyPI/setup.cfg | 2 +- PyPI/src/guan.egg-info/PKG-INFO | 2 +- PyPI/src/guan/data_processing.py | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/PyPI/setup.cfg b/PyPI/setup.cfg index d141e2e..d5b6410 100644 --- a/PyPI/setup.cfg +++ b/PyPI/setup.cfg @@ -1,7 +1,7 @@ [metadata] # replace with your username: name = guan -version = 0.1.143 +version = 0.1.144 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 a319b4c..8df5b3b 100644 --- a/PyPI/src/guan.egg-info/PKG-INFO +++ b/PyPI/src/guan.egg-info/PKG-INFO @@ -1,6 +1,6 @@ Metadata-Version: 2.2 Name: guan -Version: 0.1.143 +Version: 0.1.144 Summary: An open source python package Home-page: https://py.guanjihuan.com Author: guanjihuan diff --git a/PyPI/src/guan/data_processing.py b/PyPI/src/guan/data_processing.py index 4bf1873..71463c1 100644 --- a/PyPI/src/guan/data_processing.py +++ b/PyPI/src/guan/data_processing.py @@ -61,13 +61,13 @@ def chat(prompt='你好', stream=1, model=1): return response # 加上函数代码的 AI 对话 -def chat_with_function_code(function_name, prompt='', stream=1, model=1, top_p=0.8, temperature=0.85): +def chat_with_function_code(function_name, prompt='', stream=1, model=1): import guan function_source = guan.get_source(function_name) if prompt == '': - response = guan.chat(prompt=function_source, stream=stream, model=model, top_p=top_p, temperature=temperature) + response = guan.chat(prompt=function_source, stream=stream, model=model) else: - response = guan.chat(prompt=function_source+'\n\n'+prompt, stream=stream, model=model, top_p=top_p, temperature=temperature) + response = guan.chat(prompt=function_source+'\n\n'+prompt, stream=stream, model=model) return response # 机器人自动对话