feat(openai): add opt-in GPT personality

This commit is contained in:
Peter Steinberger
2026-04-05 15:24:47 +01:00
parent 71fa5f481d
commit dfd39a81d8
4 changed files with 64 additions and 22 deletions

View File

@@ -14,19 +14,19 @@ OpenAI explicitly supports subscription OAuth usage in external tools/workflows
## Default interaction style
OpenClaw adds a small OpenAI-specific prompt overlay by default for both
`openai/*` and `openai-codex/*` runs. The overlay keeps the assistant warm,
collaborative, concise, and direct without replacing the base OpenClaw system
prompt.
OpenClaw can add a small OpenAI-specific prompt overlay for both `openai/*` and
`openai-codex/*` runs. When enabled, the overlay keeps the assistant warm,
collaborative, concise, direct, and a little more emotionally expressive
without replacing the base OpenClaw system prompt.
Config key:
`plugins.entries.openai.config.personalityOverlay`
`plugins.entries.openai.config.personality`
Allowed values:
- `"friendly"`: default; enable the OpenAI-specific overlay.
- `"off"`: disable the overlay and use the base OpenClaw prompt only.
- `"friendly"`: enable the OpenAI-specific overlay.
- `"off"`: default; disable the overlay and use the base OpenClaw prompt only.
Scope:
@@ -34,7 +34,8 @@ Scope:
- Applies to `openai-codex/*` models.
- Does not affect other providers.
This behavior is enabled by default:
This behavior is off by default. Enable it explicitly if you want the OpenAI
personality overlay:
```json5
{
@@ -42,7 +43,7 @@ This behavior is enabled by default:
entries: {
openai: {
config: {
personalityOverlay: "friendly",
personality: "friendly",
},
},
},
@@ -52,7 +53,7 @@ This behavior is enabled by default:
### Disable the OpenAI prompt overlay
If you prefer the unmodified base OpenClaw prompt, turn the overlay off:
If you want the unmodified base OpenClaw prompt, keep the overlay off:
```json5
{
@@ -60,7 +61,7 @@ If you prefer the unmodified base OpenClaw prompt, turn the overlay off:
entries: {
openai: {
config: {
personalityOverlay: "off",
personality: "off",
},
},
},
@@ -71,7 +72,7 @@ If you prefer the unmodified base OpenClaw prompt, turn the overlay off:
You can also set it directly with the config CLI:
```bash
openclaw config set plugins.entries.openai.config.personalityOverlay off
openclaw config set plugins.entries.openai.config.personality off
```
## Option A: OpenAI API key (OpenAI Platform)