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:
- You want to use LiteLLM as a model provider
- You need to connect to a self-hosted LiteLLM proxy
@ -7,7 +7,7 @@ read_when:
---
# 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.
## Quick setup
@ -20,7 +20,7 @@ registers it as the `litellm` provider and uses the OpenAI Completions API.
3) Run onboarding:
```bash
clawdbot onboard --auth-choice litellm-api-key
openclaw onboard --auth-choice litellm-api-key
```
The wizard will prompt for:
@ -88,12 +88,12 @@ Add additional models to your config as needed:
Then switch models using:
```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
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
{
@ -125,7 +125,7 @@ Caching is **automatically enabled** for all `claude-*` models through LiteLLM.
## Notes
- 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.
- **Prompt caching works automatically** when using Claude models through LiteLLM.
- See [Model providers](/concepts/model-providers) for provider rules.

View File

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