Skip to content

在验证wiki报错No valid XML found in response, #346

@ExtremeHz

Description

@ExtremeHz

控制台输出
deepwiki-1 | 2025-09-11 13:13:52,625 - INFO - httpx - _client.py:1025 - HTTP Request: POST https://dashscope.aliyuncs.com/compatible-mode/v1/embeddings "HTTP/1.1 400 Bad Request"
deepwiki-1 | 2025-09-11 13:13:52,626 - ERROR - backoff - _common.py:120 - Giving up call(...) after 5 tries (openai.BadRequestError: Error code: 400 - {'error': {'code': 'InvalidParameter', 'param': None, 'message': 'Range of input length should be [1, 8192]', 'type': 'InvalidParameter'}, 'id': '0a6dd2aa-dfc9-496d-a290-7436a7112533', 'request_id': '0a6dd2aa-dfc9-496d-a290-7436a7112533'})
deepwiki-1 | 2025-09-11 13:13:52,626 - ERROR - adalflow.core.embedder - embedder.py:147 - Error calling the model: Error code: 400 - {'error': {'code': 'InvalidParameter', 'param': None, 'message': 'Range of input length should be [1, 8192]', 'type': 'InvalidParameter'}, 'id': '0a6dd2aa-dfc9-496d-a290-7436a7112533', 'request_id': '0a6dd2aa-dfc9-496d-a290-7436a7112533'}
deepwiki-1 | 2025-09-11 13:13:52,627 - ERROR - api.rag - rag.py:437 - Error in RAG call: not enough values to unpack (expected 2, got 1)
deepwiki-1 | 2025-09-11 13:13:52,627 - ERROR - api.simple_chat - simple_chat.py:232 - Error in RAG retrieval: 'RAGAnswer' object has no attribute 'documents'
deepwiki-1 | 2025-09-11 13:13:52,627 - INFO - api.rag - rag.py:74 - Dialog turns list exists but is empty
deepwiki-1 | 2025-09-11 13:13:52,627 - INFO - api.rag - rag.py:88 - Returning 0 dialog turns from memory
deepwiki-1 | 2025-09-11 13:13:52,627 - INFO - api.simple_chat - simple_chat.py:324 - No context available from RAG
deepwiki-1 | INFO: 127.0.0.1:59992 - "POST /chat/completions/stream HTTP/1.1" 200 OK
deepwiki-1 | 2025-09-11 13:14:04,517 - ERROR - api.simple_chat - simple_chat.py:526 - Error in streaming response:
deepwiki-1 | No API_KEY or ADC found. Please either:
deepwiki-1 | - Set the GOOGLE_API_KEY environment variable.
deepwiki-1 | - Manually pass the key with genai.configure(api_key=my_api_key).
deepwiki-1 | - Or set up Application Default Credentials, see https://ai.google.dev/gemini-api/docs/oauth for more information.
deepwiki-1 | INFO: 127.0.0.1:39244 - "GET /health HTTP/1.1" 200 OK

要怎么调整这个请求的长度,以及.env环境中 是否需要配置google_api_key呢?

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