Skip to content

Commit 968745e

Browse files
committed
feat: update ai doc to cover model switching and turning ai off
1 parent b7d6f9f commit 968745e

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

docs/03-ai.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Free users get a daily and monthly chat limit. Once you're past halfway on eithe
2727
- **[Plan, Auto-Edit, and Edit modes](#permission-modes)** let you decide how much freedom the AI has. Plan mode confirms before any change, Auto-Edit applies safe edits automatically, and Edit lets you approve each action.
2828
- **[Restore points and a visual undo timeline](#undo-and-restore)** mean every AI change is reversible. If you don't like what it did, roll back with one click.
2929
- **Live preview integration** — the AI can see your running app, take screenshots, click around, and verify its own work.
30+
- **[Choose the model](#choosing-a-model)** you want for each chat, even in the middle of a chat.
3031
- **[Bring your own provider](#settings)** — Claude from Anthropic (the default) gives the best results, or bring your own API key from any Claude Code CLI-compatible provider.
3132
- **Privacy-first onboarding** with a clear consent dialog and a video walkthrough.
3233
- **[Type while the AI is still working](#sending-messages)** — your next message gets queued.
@@ -39,6 +40,8 @@ AI requires the Claude Code CLI to be installed on your machine. If it's not ins
3940

4041
Once installed, click **Set up Claude Code** to log in. Phoenix Code detects when the login is complete and opens the chat panel automatically.
4142

43+
If your login expires later, the chat shows a **Claude Code is signed out or your login has expired** notice with a **Log in to Claude in Terminal** button. Click it, type `/login` in the terminal that opens, then send your message again.
44+
4245
<VideoPlayer
4346
src="https://docs-images.phcode.dev/website/videos/claude-code-config.mp4"
4447
/>
@@ -92,6 +95,19 @@ Click the **camera button** to take a screenshot and attach it. The dropdown let
9295

9396
![Camera screenshot dropdown](./images/pro/ai-screenshot-dropdown.png "Camera screenshot dropdown")
9497

98+
## Choosing a Model
99+
100+
The chat header shows which model is answering you. Hover over the panel and the model name appears on the left. Click it to pick a different one.
101+
102+
<!-- TODO: PLUTO - add image here showing the model dropdown in the chat header -->
103+
104+
The dropdown lists:
105+
106+
- **Default**: lets Claude Code pick. The row shows which model that is right now, for example *Currently Opus*.
107+
- The models your provider offers, such as **Opus**, **Sonnet**, and **Haiku**.
108+
109+
You can switch models in the middle of a chat. The new model takes over from your next message and keeps the conversation history.
110+
95111
## Permission Modes
96112

97113
The AI has three permission levels that control how much it can do on its own. Click the **permission label** at the bottom of the panel to cycle between them.
@@ -159,6 +175,16 @@ Phoenix Code uses the Claude Code CLI under the hood, so it works with any provi
159175
- **z.ai GLM** — tested working as a drop-in alternative. Use z.ai's Anthropic-compatible endpoint as the base URL.
160176
- **Other Anthropic-API-compatible providers** — add the provider's base URL and API key in the dialog above.
161177

178+
## Turning AI Off
179+
180+
If you don't want AI in your editor, you can switch it off completely. Go to `View > Enable AI` and unselect it. Phoenix Code asks you to confirm, and the change takes effect after you restart the app.
181+
182+
You can also do this from the AI settings dialog, with the **Enable AI features** checkbox.
183+
184+
This turns off everything: the AI tab in the sidebar and the chat panel. To get it back, go to `View > Enable AI` again.
185+
186+
> This is a user controlled preference. For schools and workplaces, please refer to [AI Control For School And Work](/docs/control-ai).
187+
162188
## Keyboard Shortcuts
163189

164190
| Action | Shortcut |

0 commit comments

Comments
 (0)