camel icon indicating copy to clipboard operation
camel copied to clipboard

adding support for openrouter

Open JINO-ROHIT opened this issue 9 months ago • 2 comments

Description

This PR adds support for OpenRouter platform using the openai compactible api.

Links #1901

JINO-ROHIT avatar Mar 19 '25 12:03 JINO-ROHIT

also guys confused about one thing, openrouter has like 300+ models i think, listing all of them would be quite bloated right?

JINO-ROHIT avatar Mar 19 '25 12:03 JINO-ROHIT

also guys confused about one thing, openrouter has like 300+ models i think, listing all of them would be quite bloated right?

Hey @JINO-ROHIT , I think you can make the model handle string names (if needed add some most basic models to enums) and respond based on that rather than listing out all 362 models.

GitHoobar avatar Mar 19 '25 18:03 GitHoobar

Hi @GitHoobar , yeah it supports the model string names.

JINO-ROHIT avatar Mar 20 '25 06:03 JINO-ROHIT

hey @JINO-ROHIT can you add an example file, I can then review it completely.

GitHoobar avatar Mar 20 '25 13:03 GitHoobar

@GitHoobar done!

JINO-ROHIT avatar Mar 20 '25 13:03 JINO-ROHIT