Skip to content

运行即报错,提示 KeyError: 'media' #214

Closed
@ha7rock

Description

@ha7rock

应用版本 : 0.3.8
使用的API:Deepseek-chat
运行平台: windows11 with miniconda
Env配置:

LLM_API_KEY="sk-"
LLM_API_BASE="https://
"
ZHIPU_API_KEY="
" #for the search tool
PRIMARY_MODEL="deepseek-chat"
#SECONDARY_MODEL="deepseek-reasoner"
#use a secondary model to excute the filtering task for the cost saving
#if not set, will use the primary model to excute the filtering task
VL_MODEL="deepseek-chat"
PB_API_AUTH="
|****" ##your pb superuser account and password
##belowing is optional, go as you need
#VERBOSE="true" ##for detail log info. If not need, remove this item.
PROJECT_DIR="work_dir"
#PB_API_BASE="" ##only use if your pb not run on 127.0.0.1:8090
#LLM_CONCURRENT_NUMBER=8 ##for concurrent llm requests, make sure your llm provider supports it(leave default is 1)

运行之后报错:

(wiseflow) PS D:\wiseflow\core> python .\windows_run.py
Starting PocketBase...
2025-01-24 23:06:37.194 | DEBUG | utils.pb_api:init:12 - initializing pocketbase client: http://127.0.0.1:8090
2025-01-24 23:06:37.445 | INFO | utils.pb_api:init:22 - pocketbase ready authenticated as admin - [email protected]
2025-01-24 23:06:37.447 | INFO | main:schedule_task:19 - task execute loop 1
2025-01-24 23:06:37.452 | DEBUG | general_process:main_process:54 - new task initializing...
2025-01-24 23:06:37.452 | DEBUG | general_process:main_process:58 - focus_id: d5v92136876jl34, focus_point: 猫咪饲养 的窍门, explanation: 仅限健康和行为相关的内容, search_engine: True
2025-01-24 23:06:38.300 | INFO | general_process:main_process:92 - query: 猫咪饲养的窍门(仅限健康和行为相关的内容)
search intent: SEARCH_ALL
keywords: 猫咪 饲养 窍门 健康 行为
2025-01-24 23:06:38.302 | DEBUG | general_process:main_process:99 - can not find publish time in the search result https://www.zhihu.com/question/567736233, adding to working list
2025-01-24 23:06:38.302 | DEBUG | general_process:main_process:99 - can not find publish time in the search result http://m.xuexila.com/aihao/siyang/1151399.html, adding to working list
2025-01-24 23:06:38.302 | DEBUG | general_process:main_process:99 - can not find publish time in the search result http://www.meishi13.com/mao/473721.html, adding to working list
Traceback (most recent call last):
File "D:\wiseflow\core\run_task.py", line 36, in
asyncio.run(schedule_task())
File "C:\Users\Tetsu\Miniconda3\envs\wiseflow\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "C:\Users\Tetsu\Miniconda3\envs\wiseflow\lib\asyncio\base_events.py", line 649, in run_until_complete
return future.result()
File "D:\wiseflow\core\run_task.py", line 32, in schedule_task
await asyncio.gather(*jobs)
File "D:\wiseflow\core\general_process.py", line 114, in main_process
author = result['media']
KeyError: 'media'
Error running run_task.py: Command '['C:\Users\Tetsu\Miniconda3\envs\wiseflow\python.exe', 'D:\wiseflow\core\run_task.py']' returned non-zero exit status 1.

从错误信息看来好像涉及源码的问题,所以想要求解,谢谢

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions