Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions src/main/provider/defaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,21 @@ export const DEFAULT_PROVIDERS: LLM_PROVIDER_BASE[] = [
defaultBaseUrl: 'https://routerra.ai/v1'
}
},
{
id: 'straico',
name: 'Straico',
apiType: 'openai-completions',
apiKey: '',
baseUrl: 'https://api.straico.com/v2',
enable: false,
websites: {
official: 'https://www.straico.com/',
apiKey: 'https://platform.straico.com/settings-api',
docs: 'https://documenter.getpostman.com/view/5900072/2s9YyzddrR',
models: 'https://api.straico.com/v2/models',
defaultBaseUrl: 'https://api.straico.com/v2'
Comment on lines +392 to +399

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟠 Major | 🏗️ Heavy lift

Preserve Straico’s /v2 base path in runtime URL construction.

src/main/provider/aiSdk/runtime.ts:810-817 appends /v1 to this preset’s baseUrl, which turns https://api.straico.com/v2 into /v2/v1 and breaks chat/model requests. Keep Straico on its documented /v2/chat and /v2/models routes.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/main/provider/defaults.ts` around lines 392 - 399, Update the Straico
runtime URL construction in the relevant provider runtime logic to preserve the
configured /v2 base path and avoid appending /v1. Ensure chat and model requests
use Straico’s documented /v2/chat and /v2/models routes, while leaving other
providers’ URL behavior unchanged.

}
},
{
id: 'poe',
name: 'Poe',
Expand Down
1 change: 1 addition & 0 deletions src/renderer/src/assets/llm-icons/straico.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions src/renderer/src/components/icons/modelIconRegistry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ import kimiColorIcon from '@/assets/llm-icons/kimi-color.svg?url'
import moonshotColorIcon from '@/assets/llm-icons/moonshot.svg?url'
import openrouterColorIcon from '@/assets/llm-icons/openrouter.svg?url'
import routerraColorIcon from '@/assets/llm-icons/routerra.svg?url'
import straicoColorIcon from '@/assets/llm-icons/straico.svg?url'
import poeColorIcon from '@/assets/llm-icons/poe-color.svg?url'
import geminiColorIcon from '@/assets/llm-icons/gemini-color.svg?url'
import githubColorIcon from '@/assets/llm-icons/github.svg?url'
Expand Down Expand Up @@ -158,6 +159,7 @@ export const modelIcons = {
moonshot: moonshotColorIcon,
openrouter: openrouterColorIcon,
routerra: routerraColorIcon,
straico: straicoColorIcon,
poe: poeColorIcon,
gemini: geminiColorIcon,
github: githubColorIcon,
Expand Down
Loading