Skip to content

deekseek\zhipu\openai api-key 全部显示无效 #31

@simple123456T

Description

@simple123456T
>>>current_llm_info : {'service_provider': 'OpenAI', 'model': 'gpt-3.5', 'api_base': 'https://api.openai.com/v1/', 'api_key': 'hk-5ida7o1000058454f12560823e48ba0b0c55dbda6a7df37c', 'api_key_valid': False}
Current LLM info:  {'service_provider': 'OpenAI', 'model': 'gpt-3.5', 'api_base': 'https://api.openai.com/v1/', 'api_key': 'hk-5ida7o1000058454f12560823e48ba0b0c55dbda6a7df37c', 'api_key_valid': False}
>>>model_name : gpt-3.5
>>>api_base : https://api.openai.com/v1/
>>>api_key : hk-5ida7o1000058454f12560823e48ba0b0c55dbda6a7df37c
>>>api_key_valid : False
API key is invalid when creating LLM instance
>>>current_llm_info : {'service_provider': 'OpenAI', 'model': 'gpt-3.5', 'api_base': 'https://api.openai.com/v1/', 'api_key': 'hk-5ida7o1000058454f12560823e48ba0b0c55dbda6a7df37c', 'api_key_valid': False}
Current LLM info:  {'service_provider': 'OpenAI', 'model': 'gpt-3.5', 'api_base': 'https://api.openai.com/v1/', 'api_key': 'hk-5ida7o1000058454f12560823e48ba0b0c55dbda6a7df37c', 'api_key_valid': False}
>>>model_name : gpt-3.5
>>>api_base : https://api.openai.com/v1/
>>>api_key : hk-5ida7o1000058454f12560823e48ba0b0c55dbda6a7df37c
>>>api_key_valid : False
API key is invalid when creating LLM instance
2025-11-06 00:16:13.624 Examining the path of torch.classes raised: Tried to instantiate class '__path__._path', but it does not exist! Ensure that it is registered via torch::class_

单独将check代码测试后发现是正常的,但是根据日志显示,当在前端中改变了llm的配置,整个代码逻辑少走了一步 check_openai_llm() 函数,导致第一次check失败的话,之后怎么更换llm在线api都是失败的

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions