Skip to content

How to modifiy config to support openrouter api? #75

@AEONWANG

Description

@AEONWANG

Hi,
I thought openrouter api is compatible with langchain_openai just with changing endpoint url so I tried like this:

env file:

OPENAI_API_KEY="openrouter key"
OPENAI_ENDPOINT="https://openrouter.ai/api/v1"
OPENAI_MODEL="qwen/qwq-32b:free"

configuration file:

planner_provider: str = "openai"
planner_model: str = "qwen/qwq-32b:free"
writer_provider: str = "openai"
writer_model: str = "qwen/qwq-32b:free"

fianally it failed with request timeout

appreciate if any suggestion

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