diff --git a/api/chat2api.py b/api/chat2api.py index 3212319..6892199 100644 --- a/api/chat2api.py +++ b/api/chat2api.py @@ -127,7 +127,10 @@ async def add_token(token: str): @app.post(f"/{api_prefix}/seed_tokens/clear" if api_prefix else "/seed_tokens/clear") async def clear_seed_tokens(): globals.seed_map.clear() + globals.conversation_map.clear() with open(globals.SEED_MAP_FILE, "w", encoding="utf-8") as f: f.write("{}") + with open(globals.CONVERSATION_MAP_FILE, "w", encoding="utf-8") as f: + f.write("{}") logger.info(f"Seed token count: {len(globals.seed_map)}") return {"status": "success", "seed_tokens_count": len(globals.seed_map)} \ No newline at end of file diff --git a/version.txt b/version.txt index 112897b..3749fad 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -v1.7.7-beta3 \ No newline at end of file +v1.7.7-beta4 \ No newline at end of file