diff --git a/.env b/.env index 858e4b5..376ec89 100644 --- a/.env +++ b/.env @@ -9,7 +9,7 @@ SERVER_HOST=0.0.0.0 # The port for the main Flask web server. -SERVER_PORT=5001 +SERVER_PORT=5000 # The port for the WebSocket server for real-time chat. WEBSOCKET_PORT=8765 @@ -33,7 +33,7 @@ LOG_LEVEL=INFO DATABASE_URL=sqlite:///./data/tsp_assistant.db # 远程 MySQL(生产环境使用,需要时取消注释) -# DATABASE_URL=mysql+pymysql://tsp_assistant:123456@jeason.online/tsp_assistant?charset=utf8mb4 +#DATABASE_URL=mysql+pymysql://tsp_assistant:123456@jeason.online/tsp_assistant?charset=utf8mb4 # ============================================================================ # LARGE LANGUAGE MODEL (LLM) CONFIGURATION @@ -42,13 +42,13 @@ DATABASE_URL=sqlite:///./data/tsp_assistant.db LLM_PROVIDER=qwen # The API key for your chosen LLM provider. -LLM_API_KEY=sk-c0dbefa1718d46eaa897199135066f00 +LLM_API_KEY=sk-Gce85QLROESeOWf3icd2mQnYHOrmMYojwVPQ0AubMjGQ5ZE2 # The base URL for the LLM API. This is often needed for OpenAI-compatible endpoints. -LLM_BASE_URL=https://dashscope.aliyuncs.com/compatible-mode/v1 +LLM_BASE_URL=https://gemini.jeason.online/v1 # The specific model to use, e.g., "qwen-plus-latest", "gpt-3.5-turbo", "claude-3-sonnet-20240229" -LLM_MODEL=qwen-plus-latest +LLM_MODEL=gemini-2.5-flash # The temperature for the model's responses (0.0 to 2.0). LLM_TEMPERATURE=0.7 @@ -105,8 +105,7 @@ AI_HUMAN_RESOLUTION_CONFIDENCE=0.90 # REDIS CACHE CONFIGURATION # ============================================================================ # Redis server host (use localhost for local development) -REDIS_HOST=localhost - +REDIS_HOST=jeason.online # Redis server port REDIS_PORT=6379 @@ -114,7 +113,7 @@ REDIS_PORT=6379 REDIS_DB=0 # Redis password (leave empty if no password) -REDIS_PASSWORD= +REDIS_PASSWORD=123456 # Redis connection pool size REDIS_POOL_SIZE=10 diff --git a/data/tsp_assistant.db b/data/tsp_assistant.db index 659d6b8..bda581e 100644 Binary files a/data/tsp_assistant.db and b/data/tsp_assistant.db differ diff --git a/src/__pycache__/agent_assistant.cpython-310.pyc b/src/__pycache__/agent_assistant.cpython-310.pyc index 060a70c..7dc5a50 100644 Binary files a/src/__pycache__/agent_assistant.cpython-310.pyc and b/src/__pycache__/agent_assistant.cpython-310.pyc differ diff --git a/src/__pycache__/main.cpython-310.pyc b/src/__pycache__/main.cpython-310.pyc index 7bbe47e..ba1a054 100644 Binary files a/src/__pycache__/main.cpython-310.pyc and b/src/__pycache__/main.cpython-310.pyc differ diff --git a/src/agent/__pycache__/__init__.cpython-310.pyc b/src/agent/__pycache__/__init__.cpython-310.pyc index 3c57fe9..d234460 100644 Binary files a/src/agent/__pycache__/__init__.cpython-310.pyc and b/src/agent/__pycache__/__init__.cpython-310.pyc differ diff --git a/src/agent/__pycache__/agent_core.cpython-310.pyc b/src/agent/__pycache__/agent_core.cpython-310.pyc index 3a255d9..8f9068e 100644 Binary files a/src/agent/__pycache__/agent_core.cpython-310.pyc and b/src/agent/__pycache__/agent_core.cpython-310.pyc differ diff --git a/src/agent/__pycache__/executor.cpython-310.pyc b/src/agent/__pycache__/executor.cpython-310.pyc index 97a1c40..0c8f584 100644 Binary files a/src/agent/__pycache__/executor.cpython-310.pyc and b/src/agent/__pycache__/executor.cpython-310.pyc differ diff --git a/src/agent/__pycache__/goal_manager.cpython-310.pyc b/src/agent/__pycache__/goal_manager.cpython-310.pyc index 41e3786..87da8d7 100644 Binary files a/src/agent/__pycache__/goal_manager.cpython-310.pyc and b/src/agent/__pycache__/goal_manager.cpython-310.pyc differ diff --git a/src/agent/__pycache__/llm_client.cpython-310.pyc b/src/agent/__pycache__/llm_client.cpython-310.pyc index 1916372..a30c5cd 100644 Binary files a/src/agent/__pycache__/llm_client.cpython-310.pyc and b/src/agent/__pycache__/llm_client.cpython-310.pyc differ diff --git a/src/agent/__pycache__/planner.cpython-310.pyc b/src/agent/__pycache__/planner.cpython-310.pyc index 4053025..aaeec2b 100644 Binary files a/src/agent/__pycache__/planner.cpython-310.pyc and b/src/agent/__pycache__/planner.cpython-310.pyc differ diff --git a/src/agent/__pycache__/reasoning_engine.cpython-310.pyc b/src/agent/__pycache__/reasoning_engine.cpython-310.pyc index d205333..c0effcd 100644 Binary files a/src/agent/__pycache__/reasoning_engine.cpython-310.pyc and b/src/agent/__pycache__/reasoning_engine.cpython-310.pyc differ diff --git a/src/agent/__pycache__/tool_manager.cpython-310.pyc b/src/agent/__pycache__/tool_manager.cpython-310.pyc index 4b07258..8a2a4f3 100644 Binary files a/src/agent/__pycache__/tool_manager.cpython-310.pyc and b/src/agent/__pycache__/tool_manager.cpython-310.pyc differ diff --git a/src/analytics/__pycache__/__init__.cpython-310.pyc b/src/analytics/__pycache__/__init__.cpython-310.pyc index 58b8aea..a6442a1 100644 Binary files a/src/analytics/__pycache__/__init__.cpython-310.pyc and b/src/analytics/__pycache__/__init__.cpython-310.pyc differ diff --git a/src/analytics/__pycache__/ai_success_monitor.cpython-310.pyc b/src/analytics/__pycache__/ai_success_monitor.cpython-310.pyc index d12580e..9355f41 100644 Binary files a/src/analytics/__pycache__/ai_success_monitor.cpython-310.pyc and b/src/analytics/__pycache__/ai_success_monitor.cpython-310.pyc differ diff --git a/src/analytics/__pycache__/alert_system.cpython-310.pyc b/src/analytics/__pycache__/alert_system.cpython-310.pyc index 6119044..57b91ff 100644 Binary files a/src/analytics/__pycache__/alert_system.cpython-310.pyc and b/src/analytics/__pycache__/alert_system.cpython-310.pyc differ diff --git a/src/analytics/__pycache__/analytics_manager.cpython-310.pyc b/src/analytics/__pycache__/analytics_manager.cpython-310.pyc index fe8c7dd..ff6d926 100644 Binary files a/src/analytics/__pycache__/analytics_manager.cpython-310.pyc and b/src/analytics/__pycache__/analytics_manager.cpython-310.pyc differ diff --git a/src/analytics/__pycache__/monitor_service.cpython-310.pyc b/src/analytics/__pycache__/monitor_service.cpython-310.pyc index bf1ad25..e8c15b4 100644 Binary files a/src/analytics/__pycache__/monitor_service.cpython-310.pyc and b/src/analytics/__pycache__/monitor_service.cpython-310.pyc differ diff --git a/src/analytics/__pycache__/token_monitor.cpython-310.pyc b/src/analytics/__pycache__/token_monitor.cpython-310.pyc index 35d360e..b9d912d 100644 Binary files a/src/analytics/__pycache__/token_monitor.cpython-310.pyc and b/src/analytics/__pycache__/token_monitor.cpython-310.pyc differ diff --git a/src/config/__pycache__/__init__.cpython-310.pyc b/src/config/__pycache__/__init__.cpython-310.pyc index 4f36f82..8865ad8 100644 Binary files a/src/config/__pycache__/__init__.cpython-310.pyc and b/src/config/__pycache__/__init__.cpython-310.pyc differ diff --git a/src/config/__pycache__/unified_config.cpython-310.pyc b/src/config/__pycache__/unified_config.cpython-310.pyc index 864ee76..35e9be8 100644 Binary files a/src/config/__pycache__/unified_config.cpython-310.pyc and b/src/config/__pycache__/unified_config.cpython-310.pyc differ diff --git a/src/core/__pycache__/__init__.cpython-310.pyc b/src/core/__pycache__/__init__.cpython-310.pyc index b05a195..9a901c8 100644 Binary files a/src/core/__pycache__/__init__.cpython-310.pyc and b/src/core/__pycache__/__init__.cpython-310.pyc differ diff --git a/src/core/__pycache__/auth_manager.cpython-310.pyc b/src/core/__pycache__/auth_manager.cpython-310.pyc index 0b73c25..39626bd 100644 Binary files a/src/core/__pycache__/auth_manager.cpython-310.pyc and b/src/core/__pycache__/auth_manager.cpython-310.pyc differ diff --git a/src/core/__pycache__/backup_manager.cpython-310.pyc b/src/core/__pycache__/backup_manager.cpython-310.pyc index 19844af..0e9336e 100644 Binary files a/src/core/__pycache__/backup_manager.cpython-310.pyc and b/src/core/__pycache__/backup_manager.cpython-310.pyc differ diff --git a/src/core/__pycache__/cache_manager.cpython-310.pyc b/src/core/__pycache__/cache_manager.cpython-310.pyc index c4a808f..e923cec 100644 Binary files a/src/core/__pycache__/cache_manager.cpython-310.pyc and b/src/core/__pycache__/cache_manager.cpython-310.pyc differ diff --git a/src/core/__pycache__/database.cpython-310.pyc b/src/core/__pycache__/database.cpython-310.pyc index ed847be..4f0a39d 100644 Binary files a/src/core/__pycache__/database.cpython-310.pyc and b/src/core/__pycache__/database.cpython-310.pyc differ diff --git a/src/core/__pycache__/llm_client.cpython-310.pyc b/src/core/__pycache__/llm_client.cpython-310.pyc index 4400ae8..16a53e2 100644 Binary files a/src/core/__pycache__/llm_client.cpython-310.pyc and b/src/core/__pycache__/llm_client.cpython-310.pyc differ diff --git a/src/core/__pycache__/models.cpython-310.pyc b/src/core/__pycache__/models.cpython-310.pyc index c262743..770832c 100644 Binary files a/src/core/__pycache__/models.cpython-310.pyc and b/src/core/__pycache__/models.cpython-310.pyc differ diff --git a/src/core/__pycache__/query_optimizer.cpython-310.pyc b/src/core/__pycache__/query_optimizer.cpython-310.pyc index 154a704..2a5e3d7 100644 Binary files a/src/core/__pycache__/query_optimizer.cpython-310.pyc and b/src/core/__pycache__/query_optimizer.cpython-310.pyc differ diff --git a/src/core/__pycache__/redis_manager.cpython-310.pyc b/src/core/__pycache__/redis_manager.cpython-310.pyc index 2ce0a25..34399b8 100644 Binary files a/src/core/__pycache__/redis_manager.cpython-310.pyc and b/src/core/__pycache__/redis_manager.cpython-310.pyc differ diff --git a/src/core/__pycache__/system_optimizer.cpython-310.pyc b/src/core/__pycache__/system_optimizer.cpython-310.pyc index 4e74a48..cc0fdc0 100644 Binary files a/src/core/__pycache__/system_optimizer.cpython-310.pyc and b/src/core/__pycache__/system_optimizer.cpython-310.pyc differ diff --git a/src/dialogue/__pycache__/__init__.cpython-310.pyc b/src/dialogue/__pycache__/__init__.cpython-310.pyc index 0f27127..c1ca18e 100644 Binary files a/src/dialogue/__pycache__/__init__.cpython-310.pyc and b/src/dialogue/__pycache__/__init__.cpython-310.pyc differ diff --git a/src/dialogue/__pycache__/conversation_history.cpython-310.pyc b/src/dialogue/__pycache__/conversation_history.cpython-310.pyc index 0a9059d..a7e060f 100644 Binary files a/src/dialogue/__pycache__/conversation_history.cpython-310.pyc and b/src/dialogue/__pycache__/conversation_history.cpython-310.pyc differ diff --git a/src/dialogue/__pycache__/dialogue_manager.cpython-310.pyc b/src/dialogue/__pycache__/dialogue_manager.cpython-310.pyc index 6fb9293..edf17fd 100644 Binary files a/src/dialogue/__pycache__/dialogue_manager.cpython-310.pyc and b/src/dialogue/__pycache__/dialogue_manager.cpython-310.pyc differ diff --git a/src/dialogue/__pycache__/realtime_chat.cpython-310.pyc b/src/dialogue/__pycache__/realtime_chat.cpython-310.pyc index f1000c0..627c6f7 100644 Binary files a/src/dialogue/__pycache__/realtime_chat.cpython-310.pyc and b/src/dialogue/__pycache__/realtime_chat.cpython-310.pyc differ diff --git a/src/integrations/__pycache__/ai_suggestion_service.cpython-310.pyc b/src/integrations/__pycache__/ai_suggestion_service.cpython-310.pyc index 535f2d0..11d4608 100644 Binary files a/src/integrations/__pycache__/ai_suggestion_service.cpython-310.pyc and b/src/integrations/__pycache__/ai_suggestion_service.cpython-310.pyc differ diff --git a/src/integrations/__pycache__/config_manager.cpython-310.pyc b/src/integrations/__pycache__/config_manager.cpython-310.pyc index e30e4dc..ae18da9 100644 Binary files a/src/integrations/__pycache__/config_manager.cpython-310.pyc and b/src/integrations/__pycache__/config_manager.cpython-310.pyc differ diff --git a/src/integrations/__pycache__/feishu_client.cpython-310.pyc b/src/integrations/__pycache__/feishu_client.cpython-310.pyc index ee223cb..51e6396 100644 Binary files a/src/integrations/__pycache__/feishu_client.cpython-310.pyc and b/src/integrations/__pycache__/feishu_client.cpython-310.pyc differ diff --git a/src/integrations/__pycache__/feishu_permission_checker.cpython-310.pyc b/src/integrations/__pycache__/feishu_permission_checker.cpython-310.pyc index 0a0e454..83422b0 100644 Binary files a/src/integrations/__pycache__/feishu_permission_checker.cpython-310.pyc and b/src/integrations/__pycache__/feishu_permission_checker.cpython-310.pyc differ diff --git a/src/integrations/__pycache__/feishu_service.cpython-310.pyc b/src/integrations/__pycache__/feishu_service.cpython-310.pyc index ecd25ea..560c662 100644 Binary files a/src/integrations/__pycache__/feishu_service.cpython-310.pyc and b/src/integrations/__pycache__/feishu_service.cpython-310.pyc differ diff --git a/src/integrations/__pycache__/flexible_field_mapper.cpython-310.pyc b/src/integrations/__pycache__/flexible_field_mapper.cpython-310.pyc index b41891b..5ba990a 100644 Binary files a/src/integrations/__pycache__/flexible_field_mapper.cpython-310.pyc and b/src/integrations/__pycache__/flexible_field_mapper.cpython-310.pyc differ diff --git a/src/integrations/__pycache__/workorder_sync.cpython-310.pyc b/src/integrations/__pycache__/workorder_sync.cpython-310.pyc index 1dbffb2..dc83d73 100644 Binary files a/src/integrations/__pycache__/workorder_sync.cpython-310.pyc and b/src/integrations/__pycache__/workorder_sync.cpython-310.pyc differ diff --git a/src/knowledge_base/__pycache__/knowledge_manager.cpython-310.pyc b/src/knowledge_base/__pycache__/knowledge_manager.cpython-310.pyc index 2a5e403..e5b9909 100644 Binary files a/src/knowledge_base/__pycache__/knowledge_manager.cpython-310.pyc and b/src/knowledge_base/__pycache__/knowledge_manager.cpython-310.pyc differ diff --git a/src/utils/__pycache__/__init__.cpython-310.pyc b/src/utils/__pycache__/__init__.cpython-310.pyc index 7b8a251..184189d 100644 Binary files a/src/utils/__pycache__/__init__.cpython-310.pyc and b/src/utils/__pycache__/__init__.cpython-310.pyc differ diff --git a/src/utils/__pycache__/helpers.cpython-310.pyc b/src/utils/__pycache__/helpers.cpython-310.pyc index 6df3827..8b5c44e 100644 Binary files a/src/utils/__pycache__/helpers.cpython-310.pyc and b/src/utils/__pycache__/helpers.cpython-310.pyc differ diff --git a/src/vehicle/__pycache__/__init__.cpython-310.pyc b/src/vehicle/__pycache__/__init__.cpython-310.pyc index f5936c4..ac93958 100644 Binary files a/src/vehicle/__pycache__/__init__.cpython-310.pyc and b/src/vehicle/__pycache__/__init__.cpython-310.pyc differ diff --git a/src/vehicle/__pycache__/vehicle_data_manager.cpython-310.pyc b/src/vehicle/__pycache__/vehicle_data_manager.cpython-310.pyc index c51b1ac..c61ce36 100644 Binary files a/src/vehicle/__pycache__/vehicle_data_manager.cpython-310.pyc and b/src/vehicle/__pycache__/vehicle_data_manager.cpython-310.pyc differ diff --git a/src/web/__pycache__/app.cpython-310.pyc b/src/web/__pycache__/app.cpython-310.pyc index b3c80bc..144a5be 100644 Binary files a/src/web/__pycache__/app.cpython-310.pyc and b/src/web/__pycache__/app.cpython-310.pyc differ diff --git a/src/web/__pycache__/error_handlers.cpython-310.pyc b/src/web/__pycache__/error_handlers.cpython-310.pyc index 3aa3fe0..7b33185 100644 Binary files a/src/web/__pycache__/error_handlers.cpython-310.pyc and b/src/web/__pycache__/error_handlers.cpython-310.pyc differ diff --git a/src/web/__pycache__/service_manager.cpython-310.pyc b/src/web/__pycache__/service_manager.cpython-310.pyc index 84640d8..9b307a5 100644 Binary files a/src/web/__pycache__/service_manager.cpython-310.pyc and b/src/web/__pycache__/service_manager.cpython-310.pyc differ diff --git a/src/web/__pycache__/websocket_server.cpython-310.pyc b/src/web/__pycache__/websocket_server.cpython-310.pyc index b2a5d54..db78220 100644 Binary files a/src/web/__pycache__/websocket_server.cpython-310.pyc and b/src/web/__pycache__/websocket_server.cpython-310.pyc differ diff --git a/src/web/blueprints/__pycache__/__init__.cpython-310.pyc b/src/web/blueprints/__pycache__/__init__.cpython-310.pyc index bd9183e..b4bea3c 100644 Binary files a/src/web/blueprints/__pycache__/__init__.cpython-310.pyc and b/src/web/blueprints/__pycache__/__init__.cpython-310.pyc differ diff --git a/src/web/blueprints/__pycache__/agent.cpython-310.pyc b/src/web/blueprints/__pycache__/agent.cpython-310.pyc index 7a31cbc..fb2d480 100644 Binary files a/src/web/blueprints/__pycache__/agent.cpython-310.pyc and b/src/web/blueprints/__pycache__/agent.cpython-310.pyc differ diff --git a/src/web/blueprints/__pycache__/alerts.cpython-310.pyc b/src/web/blueprints/__pycache__/alerts.cpython-310.pyc index f283a01..67e3219 100644 Binary files a/src/web/blueprints/__pycache__/alerts.cpython-310.pyc and b/src/web/blueprints/__pycache__/alerts.cpython-310.pyc differ diff --git a/src/web/blueprints/__pycache__/analytics.cpython-310.pyc b/src/web/blueprints/__pycache__/analytics.cpython-310.pyc index ac01832..6003896 100644 Binary files a/src/web/blueprints/__pycache__/analytics.cpython-310.pyc and b/src/web/blueprints/__pycache__/analytics.cpython-310.pyc differ diff --git a/src/web/blueprints/__pycache__/auth.cpython-310.pyc b/src/web/blueprints/__pycache__/auth.cpython-310.pyc index e4e92dd..2d7523a 100644 Binary files a/src/web/blueprints/__pycache__/auth.cpython-310.pyc and b/src/web/blueprints/__pycache__/auth.cpython-310.pyc differ diff --git a/src/web/blueprints/__pycache__/conversations.cpython-310.pyc b/src/web/blueprints/__pycache__/conversations.cpython-310.pyc index beac059..72a3f19 100644 Binary files a/src/web/blueprints/__pycache__/conversations.cpython-310.pyc and b/src/web/blueprints/__pycache__/conversations.cpython-310.pyc differ diff --git a/src/web/blueprints/__pycache__/core.cpython-310.pyc b/src/web/blueprints/__pycache__/core.cpython-310.pyc index e69b926..3b905e3 100644 Binary files a/src/web/blueprints/__pycache__/core.cpython-310.pyc and b/src/web/blueprints/__pycache__/core.cpython-310.pyc differ diff --git a/src/web/blueprints/__pycache__/feishu_bot.cpython-310.pyc b/src/web/blueprints/__pycache__/feishu_bot.cpython-310.pyc index 891c37b..9b43981 100644 Binary files a/src/web/blueprints/__pycache__/feishu_bot.cpython-310.pyc and b/src/web/blueprints/__pycache__/feishu_bot.cpython-310.pyc differ diff --git a/src/web/blueprints/__pycache__/feishu_sync.cpython-310.pyc b/src/web/blueprints/__pycache__/feishu_sync.cpython-310.pyc index f17f330..25c7cd0 100644 Binary files a/src/web/blueprints/__pycache__/feishu_sync.cpython-310.pyc and b/src/web/blueprints/__pycache__/feishu_sync.cpython-310.pyc differ diff --git a/src/web/blueprints/__pycache__/knowledge.cpython-310.pyc b/src/web/blueprints/__pycache__/knowledge.cpython-310.pyc index 3b9b40c..3d831ef 100644 Binary files a/src/web/blueprints/__pycache__/knowledge.cpython-310.pyc and b/src/web/blueprints/__pycache__/knowledge.cpython-310.pyc differ diff --git a/src/web/blueprints/__pycache__/monitoring.cpython-310.pyc b/src/web/blueprints/__pycache__/monitoring.cpython-310.pyc index 2d70bd6..8b69751 100644 Binary files a/src/web/blueprints/__pycache__/monitoring.cpython-310.pyc and b/src/web/blueprints/__pycache__/monitoring.cpython-310.pyc differ diff --git a/src/web/blueprints/__pycache__/system.cpython-310.pyc b/src/web/blueprints/__pycache__/system.cpython-310.pyc index f9eef37..8446370 100644 Binary files a/src/web/blueprints/__pycache__/system.cpython-310.pyc and b/src/web/blueprints/__pycache__/system.cpython-310.pyc differ diff --git a/src/web/blueprints/__pycache__/test.cpython-310.pyc b/src/web/blueprints/__pycache__/test.cpython-310.pyc index 34317d3..6c8532c 100644 Binary files a/src/web/blueprints/__pycache__/test.cpython-310.pyc and b/src/web/blueprints/__pycache__/test.cpython-310.pyc differ diff --git a/src/web/blueprints/__pycache__/vehicle.cpython-310.pyc b/src/web/blueprints/__pycache__/vehicle.cpython-310.pyc index cceb31f..545948b 100644 Binary files a/src/web/blueprints/__pycache__/vehicle.cpython-310.pyc and b/src/web/blueprints/__pycache__/vehicle.cpython-310.pyc differ diff --git a/src/web/blueprints/__pycache__/workorders.cpython-310.pyc b/src/web/blueprints/__pycache__/workorders.cpython-310.pyc index 7d673ca..5aa4c7d 100644 Binary files a/src/web/blueprints/__pycache__/workorders.cpython-310.pyc and b/src/web/blueprints/__pycache__/workorders.cpython-310.pyc differ