Skip to content

其他功能都能正常用,导入知识库就出错,用的DS,怎么办呢? #188

@dy19870502

Description

@dy19870502

导入知识库时出错
Traceback (most recent call last):
File "ui\generation_handlers.py", line 474, in task
File "novel_generator\knowledge.py", line 66, in import_knowledge_file
File "embedding_adapters.py", line 260, in create_embedding_adapter
File "embedding_adapters.py", line 37, in init
File "pydantic\main.py", line 214, in init
File "langchain_openai\embeddings\base.py", line 338, in validate_environment
File "openai_client.py", line 110, in init
openai.OpenAIError: The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable

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