Files
JinhaoSong322andClaude bb8b58db16 feat: add OrcaRouter as a built-in OpenAI-compatible provider
Adds orcarouter as a first-class built-in alias provider, mirroring the
existing openrouter entry:

- aliases.go: register orcarouter with base_url https://api.orcarouter.ai/v1
  and ORCAROUTER_API_KEY
- config/auto.go: register orcarouter in cloudProviders (auto-selection) and
  DefaultModels (orcarouter/auto adaptive router)
- openai client: treat orcarouter as an open-model host so consecutive
  system messages are merged before sending
- docs: new providers/orcarouter page, plus rows in the provider overview,
  and configuration/models provider list
- agent-schema.json: document the new alias in the provider description
- tests: cover the alias config, auto-selection, default model, and max
  tokens for orcarouter

Rebased onto current main, retaining canonical provider IDs and adding
navigation, a runnable example, and hermetic provider wire regressions.

Gate the OrcaRouter live-API test behind explicit opt-in so configured
credentials alone never trigger paid inference during normal tests.

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: JinhaoSong322 <jinhao.song@myflashcloud.com>
Signed-off-by: Arnaud Héritier <aheritier@users.noreply.github.com>
2026-10-27 14:07:49 +00:00

18 lines
356 B
YAML

# yaml-language-server: $schema=../agent-schema.json
models:
orcarouter_model:
provider: orcarouter
model: orcarouter/auto
agents:
root:
model: orcarouter_model
description: Assistant using OrcaRouter
instruction: |
You are a helpful assistant.
toolsets:
- type: filesystem
- type: shell
- type: think