mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-11 05:20:44 +08:00
重构仓库目录为统一的 runtime 分层并清理历史 openclaw 残留。
本次迁移将网关/通道/工具/技能/脚本与协议资源集中到新结构,统一路径常量与脚本转发机制,减少顶层噪音并保证运行与测试行为一致。 Made-with: Cursor
This commit is contained in:
parent
ba3836f00f
commit
4a23b715a2
498 changed files with 2760 additions and 2200 deletions
|
|
@ -1,6 +1,6 @@
|
|||
# LLM provider/transport capability matrix (oclaw)
|
||||
|
||||
This project follows an **OpenClaw-style explicit provider/transport selection**:
|
||||
This project follows an **Oclaw-style explicit provider/transport selection**:
|
||||
|
||||
- You select the transport via **LLM profile `mode`** (not by inferring from `base_url`).
|
||||
- `base_url` can be the same unified gateway URL for all providers; the `mode` determines the wire protocol.
|
||||
|
|
@ -12,7 +12,7 @@ This project follows an **OpenClaw-style explicit provider/transport selection**
|
|||
- **`base_url`**: gateway host URL (may be shared across providers)
|
||||
- **`api_key`** (profile secret): primary credential source (reused across modes)
|
||||
|
||||
Transport selection happens in `oclaw/agents/factory.py`.
|
||||
Transport selection happens in `oclaw/runtime/agents/factory.py`.
|
||||
|
||||
## Modes and transports
|
||||
|
||||
|
|
@ -73,7 +73,7 @@ All transports stream assistant output through the same internal callback:
|
|||
For additional providers, follow this pattern:
|
||||
|
||||
1. Add a new transport class under `oclaw/platform/llm/transports/`
|
||||
2. Extend `mode` selection in `oclaw/agents/factory.py`
|
||||
2. Extend `mode` selection in `oclaw/runtime/agents/factory.py`
|
||||
3. Add an **offline stream parser test** under `tests/`
|
||||
4. Add/verify WS contract tests (delta + final + session.tool)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue