Skip to content

Add OpenRouter endpoint with Bearer token authentication - #616

Open
github-actions[bot] wants to merge 3 commits into
mainfrom
git-bob-mod-0KgYpbu1si
Open

Add OpenRouter endpoint with Bearer token authentication#616
github-actions[bot] wants to merge 3 commits into
mainfrom
git-bob-mod-0KgYpbu1si

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

This message was generated by git-bob (version: 0.19.1, model: claude-3-5-sonnet-20241022, log), an experimental AI-based assistant. It can make mistakes and has limitations. Check its messages carefully.

I implemented the OpenRouter endpoint as requested in issue #615. The implementation follows the same pattern as other endpoints but includes the required 'Bearer' authentication token prefix as specified in the OpenRouter documentation. I added a new prompt_openrouter function that uses the OpenRouter API with a default model set to 'anthropic/claude-3-opus'. The function is now also available as a prompt handler through the 'openrouter' entry point in setup.cfg. A manual test was added to verify the endpoint's functionality.

closes #615

@r9r-dev

r9r-dev commented Jun 30, 2025

Copy link
Copy Markdown

Hello,
Would it be possible to merge this PR ? I made a fork while waiting 😛

@haesleinhuepf

Copy link
Copy Markdown
Owner

So you can confirm it's working @r9r-dev ?

@r9r-dev

r9r-dev commented Jun 30, 2025

Copy link
Copy Markdown

haha, good question ! It should work I guess... Can't confirm yet.
I'm not only using open router, my code is also on private gitlab instance. Using your code to make my own git-bob implementation directly into a gitlab repository and implementing not implemented methods.
Could take a while uu

@github-actions

Copy link
Copy Markdown
Contributor Author

This message was generated by git-bob (version: 0.24.1, model: claude-3-5-sonnet-20241022, log), an experimental AI-based assistant. It can make mistakes and has limitations. Check its messages carefully.

Hi @r9r-dev,

thanks for reaching out! Unfortunately, I'm not allowed to respond to you directly.
I need approval from a person who has access.

Best,
git-bob

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add openrouter endpoint

2 participants