Skip to content

llm_reranker provider use ollama config error #3768

@wenluliao

Description

@wenluliao

🐛 Describe the bug

{
"llm": {
"provider": "openai",
"config": {
"model": model_name,
"temperature": 0.2,
"max_tokens": 2000,
"openai_base_url": openai_base_url
}
},
"embedder": {
"provider": "ollama",
"config": {
"model": "qwen3-embedding:0.6b",
"ollama_base_url": "http://localhost:11434"
}
},
"reranker": {
"provider": "llm_reranker",
"config": {
"llm": {
"provider": "ollama",
"config": {
"model": "dengcao/Qwen3-Reranker-0.6B:F16",
"ollama_base_url": "http://localhost:11434"
}
}
}
},
"vector_store": {
"provider": "chroma",
"config": {
"collection_name": "test",
"path": "db"
}
}
}

正在搜索要更新的记忆: 看电影
2025-11-18 18:46:13,673 - httpx - INFO - HTTP Request: POST http://localhost:11434/api/embeddings "HTTP/1.1 200 OK"
2025-11-18 18:46:13,710 - src.utils - INFO - LLM请求 - 模型: gpt-4o-mini, 消息数量: 1
📤 LLM请求记录: gpt-4o-mini - 1条消息
2025-11-18 18:46:15,066 - httpx - INFO - HTTP Request: POST https://api.openai.com/v1/chat/completions "HTTP/1.1 401 Unauthorized"
🌐 实际调用URL: https://platform.openai.com/account/api-keys.
2025-11-18 18:46:15,068 - src.utils - ERROR - LLM错误 - 模型: gpt-4o-mini, 错误: Error code: 401 - {'error': {'message': 'Incorrect API key provided: sk-feppieria. You can find your API key at https://platform.openai.com/account/api-keys.', 'type': 'invalid_request_error', 'code': 'invalid_api_key', 'param': None}}
❌ LLM异常记录: Error code: 401 - {'error': {'message': 'Incorrect API key provided: sk-feppi
eria. You can find your API key at https://platform.openai.com/account/api-keys.', 'type': 'invalid_request_error', 'code': 'invalid_api_key', 'param': None}}
2025-11-18 18:46:15,068 - src.utils - INFO - LLM请求 - 模型: gpt-4o-mini, 消息数量: 1
📤 LLM请求记录: gpt-4o-mini - 1条消息
2025-11-18 18:46:15,421 - httpx - INFO - HTTP Request: POST https://api.openai.com/v1/chat/completions "HTTP/1.1 401 Unauthorized"
🌐 实际调用URL: https://platform.openai.com/account/api-keys.
2025-11-18 18:46:15,422 - src.utils - ERROR - LLM错误 - 模型: gpt-4o-mini, 错误: Error code: 401 - {'error': {'message': 'Incorrect API key provided: sk-feppieria. You can find your API key at https://platform.openai.com/account/api-keys.', 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_api_key'}}
❌ LLM异常记录: Error code: 401 - {'error': {'message': 'Incorrect API key provided: sk-feppi
eria. You can find your API key at https://platform.openai.com/account/api-keys.', 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_api_key'}}
2025-11-18 18:46:15,422 - src.utils - INFO - LLM请求 - 模型: gpt-4o-mini, 消息数量: 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions