fix: update remaining MoltbotConfig references to OpenClawConfig

- Update type signatures in onboard-auth.config-core.ts
- Update product name references in litellm.md docs
- Update CLI command examples from clawdbot to openclaw
This commit is contained in:
Charles-Henri ROBICHE 2026-01-30 12:59:40 +01:00
parent 86b160624d
commit 81518603e4
No known key found for this signature in database
2 changed files with 10 additions and 10 deletions

View File

@ -1,5 +1,5 @@
--- ---
summary: "Use LiteLLM as an OpenAI-compatible proxy in Clawdbot" summary: "Use LiteLLM as an OpenAI-compatible proxy in OpenClaw"
read_when: read_when:
- You want to use LiteLLM as a model provider - You want to use LiteLLM as a model provider
- You need to connect to a self-hosted LiteLLM proxy - You need to connect to a self-hosted LiteLLM proxy
@ -7,7 +7,7 @@ read_when:
--- ---
# LiteLLM # LiteLLM
LiteLLM is an OpenAI-compatible proxy that supports 100+ LLM APIs. Clawdbot LiteLLM is an OpenAI-compatible proxy that supports 100+ LLM APIs. OpenClaw
registers it as the `litellm` provider and uses the OpenAI Completions API. registers it as the `litellm` provider and uses the OpenAI Completions API.
## Quick setup ## Quick setup
@ -20,7 +20,7 @@ registers it as the `litellm` provider and uses the OpenAI Completions API.
3) Run onboarding: 3) Run onboarding:
```bash ```bash
clawdbot onboard --auth-choice litellm-api-key openclaw onboard --auth-choice litellm-api-key
``` ```
The wizard will prompt for: The wizard will prompt for:
@ -88,12 +88,12 @@ Add additional models to your config as needed:
Then switch models using: Then switch models using:
```bash ```bash
clawdbot config set agents.defaults.model.primary litellm/claude-3-opus openclaw config set agents.defaults.model.primary litellm/claude-3-opus
``` ```
## Prompt caching ## Prompt caching
When using Anthropic models through LiteLLM (e.g., `claude-opus-4-5`, `claude-sonnet-4-5`), Moltbot automatically enables **prompt caching** to reduce costs: When using Anthropic models through LiteLLM (e.g., `claude-opus-4-5`, `claude-sonnet-4-5`), OpenClaw automatically enables **prompt caching** to reduce costs:
```json5 ```json5
{ {
@ -125,7 +125,7 @@ Caching is **automatically enabled** for all `claude-*` models through LiteLLM.
## Notes ## Notes
- Model refs use `litellm/<modelId>` where `modelId` matches your LiteLLM config. - Model refs use `litellm/<modelId>` where `modelId` matches your LiteLLM config.
- The base URL should not include `/v1` - Moltbot's OpenAI client appends it. - The base URL should not include `/v1` - OpenClaw's OpenAI client appends it.
- Supported LiteLLM models depend on your proxy configuration. - Supported LiteLLM models depend on your proxy configuration.
- **Prompt caching works automatically** when using Claude models through LiteLLM. - **Prompt caching works automatically** when using Claude models through LiteLLM.
- See [Model providers](/concepts/model-providers) for provider rules. - See [Model providers](/concepts/model-providers) for provider rules.

View File

@ -490,7 +490,7 @@ export function applyVeniceConfig(cfg: OpenClawConfig): OpenClawConfig {
* are user-configurable. * are user-configurable.
*/ */
export function applyLitellmProviderConfig( export function applyLitellmProviderConfig(
cfg: MoltbotConfig, cfg: OpenClawConfig,
params: { params: {
baseUrl: string; baseUrl: string;
modelId: string; modelId: string;
@ -498,7 +498,7 @@ export function applyLitellmProviderConfig(
contextWindow?: number; contextWindow?: number;
maxTokens?: number; maxTokens?: number;
}, },
): MoltbotConfig { ): OpenClawConfig {
const modelRef = `litellm/${params.modelId}`; const modelRef = `litellm/${params.modelId}`;
const models = { ...cfg.agents?.defaults?.models }; const models = { ...cfg.agents?.defaults?.models };
models[modelRef] = { models[modelRef] = {
@ -562,7 +562,7 @@ export function applyLitellmProviderConfig(
* Use this when LiteLLM is the primary provider choice during onboarding. * Use this when LiteLLM is the primary provider choice during onboarding.
*/ */
export function applyLitellmConfig( export function applyLitellmConfig(
cfg: MoltbotConfig, cfg: OpenClawConfig,
params: { params: {
baseUrl: string; baseUrl: string;
modelId: string; modelId: string;
@ -570,7 +570,7 @@ export function applyLitellmConfig(
contextWindow?: number; contextWindow?: number;
maxTokens?: number; maxTokens?: number;
}, },
): MoltbotConfig { ): OpenClawConfig {
const next = applyLitellmProviderConfig(cfg, params); const next = applyLitellmProviderConfig(cfg, params);
const modelRef = `litellm/${params.modelId}`; const modelRef = `litellm/${params.modelId}`;
const existingModel = next.agents?.defaults?.model; const existingModel = next.agents?.defaults?.model;