Skip to content

ai: support OpenRouter-style OpenAI urls#275

Merged
rgushchin merged 2 commits into
sashiko-dev:mainfrom
TheSven73:pr-openrouter-bug
Jun 12, 2026
Merged

ai: support OpenRouter-style OpenAI urls#275
rgushchin merged 2 commits into
sashiko-dev:mainfrom
TheSven73:pr-openrouter-bug

Conversation

@TheSven73

Copy link
Copy Markdown
Contributor

Support OpenRouter-style OpenAI urls. This allows Sashiko to to use OpenRouter as its AI provider.

While we're here, fix url normalization error handling, so Sashiko errors out early when urls are malformed.

See #274

Problem:
When Settings.toml contains an invalid or malformed url for the
OpenAI provider, that url gets normalized to the empty string "".
This makes Sashiko fail with hard-to-understand error logs,
such as in sashiko-dev#274

Solution:
Ensure immediate error exit when the OpenAI url is invalid or
malformed.

Signed-off-by: Sven Van Asbroeck <TheSven73@googlemail.com>
Signed-off-by: Sven Van Asbroeck <TheSven73@googlemail.com>
@rgushchin rgushchin merged commit 48c408d into sashiko-dev:main Jun 12, 2026
3 checks passed
@TheSven73 TheSven73 deleted the pr-openrouter-bug branch June 13, 2026 13:25
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.

2 participants