From 001b24961496e7c1581d27f9152534be01778306 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8E=A3=E4=BB=94?= Date: Thu, 13 Feb 2025 10:21:29 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E7=B4=A7=E6=80=A5=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 去除多余引用 --- core/fay_core.py | 2 -- core/recorder.py | 3 --- 2 files changed, 5 deletions(-) diff --git a/core/fay_core.py b/core/fay_core.py index a051e93..143baff 100644 --- a/core/fay_core.py +++ b/core/fay_core.py @@ -31,7 +31,6 @@ from llm import nlp_ollama_api from llm import nlp_coze from llm.agent import fay_agent from llm import nlp_qingliu -from llm import nlp_return from llm import nlp_gpt_stream from core import stream_manager @@ -68,7 +67,6 @@ modules = { "nlp_coze": nlp_coze, "nlp_agent": fay_agent, "nlp_qingliu": nlp_qingliu, - "nlp_return": nlp_return, "nlp_gpt_stream": nlp_gpt_stream } diff --git a/core/recorder.py b/core/recorder.py index 83bb11b..890698f 100644 --- a/core/recorder.py +++ b/core/recorder.py @@ -8,7 +8,6 @@ from queue import Queue from asr.ali_nls import ALiNls from asr.funasr import FunASR -from asr.gemini_asr import GeminiASR from core import wsa_server from scheduler.thread_manager import MyThread from utils import util @@ -60,8 +59,6 @@ class Recorder: asrcli = ALiNls(self.username) elif self.ASRMode == "funasr" or self.ASRMode == "sensevoice": asrcli = FunASR(self.username) - elif self.ASRMode == "gemini": - asrcli = GeminiASR(self.username) return asrcli def save_buffer_to_file(self, buffer): From a05ce45fc33e6e66fbd74abab9718bf71c3c558e Mon Sep 17 00:00:00 2001 From: guo zebin Date: Thu, 13 Feb 2025 10:29:23 +0800 Subject: [PATCH 2/3] Update fay_agent.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 紧急修复 --- llm/agent/fay_agent.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/llm/agent/fay_agent.py b/llm/agent/fay_agent.py index f7bfbcd..2782198 100644 --- a/llm/agent/fay_agent.py +++ b/llm/agent/fay_agent.py @@ -9,10 +9,6 @@ from llm.agent.tools.PythonExecutor import PythonExecutor from llm.agent.tools.WebPageRetriever import WebPageRetriever from llm.agent.tools.WebPageScraper import WebPageScraper from llm.agent.tools.ToRemind import ToRemind -from llm.agent.tools.StrategyControl import StrategyControl -from llm.agent.tools.TradeAnalyzer import TradeAnalyzer -from llm.agent.tools.PositionMonitor import PositionMonitor -from llm.agent.tools.StrategyLogger import StrategyLogger from langgraph.prebuilt import create_react_agent from langchain_openai import ChatOpenAI from langgraph.checkpoint.memory import MemorySaver From 04e4bd7b7ced5e380a8f82501d399216380bd310 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8E=A3=E4=BB=94?= Date: Thu, 13 Feb 2025 10:38:34 +0800 Subject: [PATCH 3/3] Update config.json --- config.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config.json b/config.json index a563dc6..5b87399 100644 --- a/config.json +++ b/config.json @@ -1,13 +1,16 @@ { "attribute": { + "additional": "\u53d1\u5446", "age": "\u6210\u5e74", "birth": "Github", "constellation": "\u6c34\u74f6\u5ea7", "contact": "qq467665317", "gender": "\u5973", + "goal": "\u89e3\u51b3\u95ee\u9898", "hobby": "\u53d1\u5446", "job": "\u52a9\u7406", "name": "\u83f2\u83f2", + "position": "\u5ba2\u670d", "voice": "\u6653\u6653(edge)", "zodiac": "\u86c7" },