Add Support for Openrouter as API router & Anthropic Claude Sonnet#3
Add Support for Openrouter as API router & Anthropic Claude Sonnet#30xrsydn wants to merge 2 commits intodzhng:mainfrom
Conversation
|
what also would be cool to capture the R1 tough part and let another agent review this? just a brain dump was playing around with this idea that it sort of automatically self improves.. |
yeah i have tried using r1 one, apparently i have to change how the code works too as i have to parse process of r1 also how r1 handle the code (i tried it with openrouter api, think doesnt work on this code especially generateObject one) |
|
allow configurable openai base url |
|
I really want to keep this repo simple and <500 LoC so it's easy for people to come in and understand. mind that I don't merge this and just keep this PR open so anyone who wants to do this can get a good reference implementation |
|
FYI latest version supports custom endpoints & models via env vars, which also let's you support openrouter (since they're openai api compatible). I think that's cleaner so going to close this PR |
I tried using claude sonnet via openrouter api and it works great also the report results was quite decent.
Other models on openrouter, I havent try it but the openai one need tier 3 one also for deepseek model integration one especially R1 might need some adjustment