anomalyco / anomalyco/models.dev

OpenRouter proxied Perplexity models missing

Open
#828 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
6.9k
Forks
1.7k
Avg merge
3h 21m
Merged PRs (30d)
873

Description

OpenRouter proxies Perplexity models, e.g. Perplexity Sonar and variants; why aren't they listed in the models.dev list?

Reproduce:

  1. Visit https://models.dev/?search=perplexity
  2. Notice that the OpenRouter doesn't appear in the list
    Screenshot

    Image

  3. However, OpenRouter serves those models:
    Screenshot

    Image

I have a question for the maintainers. From a VERY brief look I took at the repo, there aren't any workflows to automatically update model lists for OpenAI compatible providers? Why not just run a workflow every 24 hrs to fetch and parse https://openrouter.ai/api/v1/models, which contains pretty much all the info you need, and update the list based on that?

Sample JSON from OpenRouter

    {
      "id": "openrouter/pony-alpha",
      "canonical_slug": "openrouter/pony-alpha",
      "hugging_face_id": "",
      "name": "Pony Alpha",
      "created": 1770393855,
      "description": "Pony is a cutting-edge foundation model with strong performance in coding, agentic workflows, reasoning, and roleplay, making it well suited for hands-on coding and real-world use.\n\n**Note:** All prompts and completions for this model are logged by the provider and may be used to improve the model.",
      "context_length": 200000,
      "architecture": {
        "modality": "text-\u003Etext",
        "input_modalities": [
          "text"
        ],
        "output_modalities": [
          "text"
        ],
        "tokenizer": "Other",
        "instruct_type": null
      },
      "pricing": {
        "prompt": "0",
        "completion": "0",
        "request": "0",
        "image": "0",
        "web_search": "0",
        "internal_reasoning": "0"
      },
      "top_provider": {
        "context_length": 200000,
        "max_completion_tokens": 131000,
        "is_moderated": false
      },
      "per_request_limits": null,
      "supported_parameters": [
        "include_reasoning",
        "max_tokens",
        "reasoning",
        "response_format",
        "structured_outputs",
        "temperature",
        "tools",
        "top_p"
      ],
      "default_parameters": {
        "temperature": 1,
        "top_p": 0.95,
        "frequency_penalty": null
      },
      "expiration_date": null
    },

Thanks in advance!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Compare the OpenRouter response at https://openrouter.ai/api/v1/models with the provider data shown by https://models.dev/?search=perplexity. Confirm that Perplexity Sonar and its variants are represented under OpenRouter, then verify that the models.dev search results include them. Done means the missing OpenRouter models are listed with the available provider metadata.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api, data
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.