Skip to content

llm openrouter models command #26

Closed
@simonw

Description

@simonw

Dumps out the JSON we've stashed here:

def get_openrouter_models():
return fetch_cached_json(
url="https://openrouter.ai/api/v1/models",
path=llm.user_dir() / "openrouter_models.json",
cache_timeout=3600,
)["data"]

I added an initial command here:

I need to see that list to help with:

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions