valuecell icon indicating copy to clipboard operation
valuecell copied to clipboard

AI is thinking

Open tom6q6 opened this issue 1 year ago • 3 comments

我发送 你好 两个字,一直显示AI is thinking

Image

http://localhost:8000/api/v1/agents/stream

{"query":"你好","agent_name":"ValueCellAgent","conversation_id":""}

data: {"event": "conversation_started", "data": {"conversation_id": "conv-02b827f1b5af40b0ac30956d2214d138", "role": "system", "item_id": "item-384a3c635d23462987682ee3eeaeaf16"}}

data: {"event": "thread_started", "data": {"conversation_id": "conv-02b827f1b5af40b0ac30956d2214d138", "thread_id": "th-a718501230eb49d0bb5420d68f0da547", "task_id": "ask-cdd7ed554f9a40059bb509d57229805d", "payload": {"content": "\u4f60\u597d"}, "role": "user", "item_id": "item-c23283189b8e4b2a852352b0064cc1a8"}}

我开了vpn,平时可以访问海外的。模型用的是默认的模型,没有修改。openrouter的key也没问题,充值了。

tom6q6 avatar Oct 29 '25 11:10 tom6q6

Hello, thank you for getting in touch. To better assist your issue, could you please attach the backend.log with AGENT_DEBUG_MODE=true, since we could not reproduce this issue in our current codebase.

vcfgv avatar Oct 30 '25 02:10 vcfgv

Hello, thank you for getting in touch. To better assist your issue, could you please attach the backend.log with AGENT_DEBUG_MODE=true, since we could not reproduce this issue in our current codebase.

warning: VIRTUAL_ENV=C:\Users\Thinkpad\AppData\Local\uv\cache\builds-v0\.tmpqKckWL does not match the project environment path .venv and will be ignored; use --active to target the active environment instead 2025-10-30 11:27:30,579 - valuecell.server.config.i18n - INFO - Initialized i18n configuration: language=zh-Hans, timezone=Asia/Shanghai 2025-10-30 11:27:30,598 - valuecell.adapters.assets.manager - INFO - Asset adapter manager initialized 2025-10-30 11:27:30,598 - valuecell.adapters.assets.manager - INFO - Watchlist manager initialized 2025-10-30 11:27:30,598 - valuecell.adapters.assets.i18n_integration - INFO - Asset i18n service initialized 2025-10-30 11:27:30,624 - valuecell.server.services.agent_stream_service - INFO - Agent stream service initialized 2025-10-30 11:27:30,655 - valuecell.server.services.agent_stream_service - INFO - Agent stream service initialized INFO: Started server process [17856] INFO: Waiting for application startup. 2025-10-30 11:27:30,675 - valuecell.adapters.assets.yfinance_adapter - INFO - Yahoo Finance adapter initialized 2025-10-30 11:27:30,675 - valuecell.adapters.assets.manager - INFO - Registered adapter: yfinance 2025-10-30 11:27:30,677 - valuecell.adapters.assets.akshare_adapter - INFO - AKShare adapter initialized with caching and field mapping 2025-10-30 11:27:30,677 - valuecell.adapters.assets.manager - INFO - Registered adapter: akshare INFO: Application startup complete. INFO: Uvicorn running on http://localhost:8000 (Press CTRL+C to quit) ValueCell Server starting up on localhost:8000... Configuring data adapters... ✓ Yahoo Finance adapter configured ✓ AKShare adapter configured (optimized) Data adapters configuration completed INFO: ::1:64283 - "GET /api/v1/conversations/ HTTP/1.1" 200 OK INFO: ::1:52575 - "GET /api/v1/agents/?enabled_only=true HTTP/1.1" 200 OK INFO: ::1:55662 - "GET /api/v1/agents/by-name/WarrenBuffettAgent HTTP/1.1" 200 OK INFO: ::1:60107 - "GET /api/v1/conversations/conv-13dd7b28b0e74fbea0f4656eed92b781/scheduled-task-results HTTP/1.1" 200 OK INFO: ::1:65290 - "GET /api/v1/conversations/conv-13dd7b28b0e74fbea0f4656eed92b781/history HTTP/1.1" 200 OK INFO: ::1:54803 - "GET /api/v1/agents/?enabled_only=true HTTP/1.1" 200 OK INFO: ::1:63439 - "GET /api/v1/conversations/ HTTP/1.1" 200 OK INFO: ::1:60571 - "GET /api/v1/agents/by-name/WarrenBuffettAgent HTTP/1.1" 200 OK INFO: ::1:55968 - "GET /api/v1/conversations/conv-13dd7b28b0e74fbea0f4656eed92b781/scheduled-task-results HTTP/1.1" 200 OK INFO: ::1:64760 - "GET /api/v1/conversations/conv-13dd7b28b0e74fbea0f4656eed92b781/history HTTP/1.1" 200 OK INFO: ::1:64760 - "POST /api/v1/agents/stream HTTP/1.1" 200 OK 2025-10-30 11:29:28,949 - valuecell.server.services.agent_stream_service - INFO - Processing streaming query: 万孚生物... 2025-10-30 11:29:29,902 - httpx - INFO - HTTP Request: POST https://api.deepseek.com/chat/completions "HTTP/1.1 200 OK" 2025-10-30 11:29:35,115 - httpx - INFO - HTTP Request: POST https://api.deepseek.com/chat/completions "HTTP/1.1 400 Bad Request" ERROR API status error from OpenAI API: Error code: 400 - {'error':
{'message': 'This response_format type is unavailable now', 'type':
'invalid_request_error', 'param': None, 'code':
'invalid_request_error'}}
WARNING Error in memory/summary operation: This response_format type is
unavailable now
2025-10-30 11:29:36,878 - httpx - INFO - HTTP Request: POST https://os-api.agno.com/telemetry/runs "HTTP/1.1 201 Created" 2025-10-30 11:29:36,885 - valuecell.core.plan.planner - INFO - Planner produced plan: tasks=[_TaskBrief(title='万孚生物', query='万孚生物', agent_name='WarrenBuffettAgent', pattern=<TaskPattern.ONCE: 'once'>, schedule_config=None)] adequate=True reason='Pass-through to the specified agent.' guidance_message=None 2025-10-30 11:29:36,925 - httpx - INFO - HTTP Request: GET http://localhost:10021/.well-known/agent-card.json "HTTP/1.1 200 OK" 2025-10-30 11:29:36,930 - a2a.client.card_resolver - INFO - Successfully fetched agent card data from http://localhost:10021/.well-known/agent-card.json: {'capabilities': {'pushNotifications': False, 'streaming': True}, 'defaultInputModes': [], 'defaultOutputModes': [], 'description': 'Long-term value investing with emphasis on durable businesses, simple economics, and shareholder-friendly management.', 'name': 'WarrenBuffettAgent', 'preferredTransport': 'JSONRPC', 'protocolVersion': '0.3.0', 'skills': [{'description': 'Long-term value investing with emphasis on durable businesses, simple economics, and shareholder-friendly management.', 'examples': ["Evaluate a company's long-term competitive advantage and free cash flow generation", 'Which businesses should be held for decades?'], 'id': 'warren_buffett_agent', 'name': 'Warren Buffett', 'tags': ['long-term', 'value', 'moat']}], 'url': 'http://localhost:10021/', 'version': ''} 2025-10-30 11:29:36,930 - valuecell.core.agent.connect - INFO - Connected to agent 'WarrenBuffettAgent' at http://localhost:10021/ 2025-10-30 11:29:36,935 - httpx - INFO - HTTP Request: POST http://localhost:10021/ "HTTP/1.1 200 OK" 2025-10-30 11:29:37,579 - a2a.client.client_task_manager - INFO - New task created with id: c1db484e-d871-4bc9-b364-8327fc93df9a 2025-10-30 11:29:37,580 - valuecell.core.event.router - INFO - Task task-bd64c185fba24c5b906353b98c551ba2 status update: TaskState.working 2025-10-30 11:29:45,017 - valuecell.core.event.router - INFO - Task task-bd64c185fba24c5b906353b98c551ba2 status update: TaskState.working 2025-10-30 11:29:46,403 - valuecell.core.event.router - INFO - Task task-bd64c185fba24c5b906353b98c551ba2 status update: TaskState.failed INFO: ::1:49918 - "OPTIONS /api/v1/conversations/conv-13dd7b28b0e74fbea0f4656eed92b781/scheduled-task-results HTTP/1.1" 200 OK INFO: ::1:49918 - "GET /api/v1/conversations/conv-13dd7b28b0e74fbea0f4656eed92b781/scheduled-task-results HTTP/1.1" 200 OK INFO: ::1:63273 - "GET /api/v1/conversations/conv-13dd7b28b0e74fbea0f4656eed92b781/scheduled-task-results HTTP/1.1" 200 OK INFO: ::1:63273 - "OPTIONS /api/v1/conversations/ HTTP/1.1" 200 OK INFO: ::1:50060 - "OPTIONS /api/v1/agents/?enabled_only=true HTTP/1.1" 200 OK INFO: ::1:64327 - "OPTIONS /api/v1/agents/by-name/WarrenBuffettAgent HTTP/1.1" 200 OK INFO: ::1:51122 - "OPTIONS /api/v1/conversations/conv-13dd7b28b0e74fbea0f4656eed92b781/history HTTP/1.1" 200 OK INFO: ::1:63273 - "GET /api/v1/conversations/ HTTP/1.1" 200 OK INFO: ::1:50060 - "GET /api/v1/agents/?enabled_only=true HTTP/1.1" 200 OK INFO: ::1:64327 - "GET /api/v1/agents/by-name/WarrenBuffettAgent HTTP/1.1" 200 OK INFO: ::1:63307 - "GET /api/v1/conversations/conv-13dd7b28b0e74fbea0f4656eed92b781/scheduled-task-results HTTP/1.1" 200 OK INFO: ::1:51122 - "GET /api/v1/conversations/conv-13dd7b28b0e74fbea0f4656eed92b781/history HTTP/1.1" 200 OK INFO: ::1:51122 - "OPTIONS /api/v1/agents/stream HTTP/1.1" 200 OK INFO: ::1:63307 - "POST /api/v1/agents/stream HTTP/1.1" 200 OK 2025-10-30 11:35:40,658 - valuecell.server.services.agent_stream_service - INFO - Processing streaming query: 请分析万孚生物 300482 的投资价值

... 2025-10-30 11:35:41,097 - httpx - INFO - HTTP Request: POST https://api.deepseek.com/chat/completions "HTTP/1.1 200 OK" 2025-10-30 11:35:45,439 - httpx - INFO - HTTP Request: POST https://api.deepseek.com/chat/completions "HTTP/1.1 400 Bad Request" ERROR API status error from OpenAI API: Error code: 400 - {'error':
{'message': 'This response_format type is unavailable now', 'type':
'invalid_request_error', 'param': None, 'code':
'invalid_request_error'}}
WARNING Error in memory/summary operation: This response_format type is
unavailable now
2025-10-30 11:35:48,014 - httpx - INFO - HTTP Request: POST https://os-api.agno.com/telemetry/runs "HTTP/1.1 201 Created" 2025-10-30 11:35:48,014 - valuecell.core.plan.planner - INFO - Planner produced plan: tasks=[_TaskBrief(title='万孚生物投资价值', query='请分析万孚生物 300482 的投资价值', agent_name='WarrenBuffettAgent', pattern=<TaskPattern.ONCE: 'once'>, schedule_config=None)] adequate=True reason='Pass-through to the specified agent.' guidance_message=None 2025-10-30 11:35:48,025 - httpx - INFO - HTTP Request: POST http://localhost:10021/ "HTTP/1.1 200 OK" 2025-10-30 11:35:48,053 - a2a.client.client_task_manager - INFO - New task created with id: d94348d7-b9e8-4030-a7eb-9e97d41933a5 2025-10-30 11:35:48,054 - valuecell.core.event.router - INFO - Task task-244fe39af61243e0b14766d24bc16afb status update: TaskState.working 2025-10-30 11:35:55,272 - valuecell.core.event.router - INFO - Task task-244fe39af61243e0b14766d24bc16afb status update: TaskState.working 2025-10-30 11:35:56,397 - valuecell.core.event.router - INFO - Task task-244fe39af61243e0b14766d24bc16afb status update: TaskState.failed

tom6q6 avatar Oct 30 '25 03:10 tom6q6

Thank you for the helpful information you provided. I've tested with deepseek/deepseek-chat-v3-0324 as planner model id and it delegates this query to ResearchAgent and got a detailed report, unable to reproduce this issue. Would you please delete the valuecell.db file, pull the latest main codebase and try again later?

vcfgv avatar Oct 30 '25 04:10 vcfgv