mirror of
https://github.com/docker/docker-agent.git
synced 2026-11-04 10:02:15 +00:00
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>
18 lines
356 B
YAML
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
|