預先載入服務的無痕聊天頁
webchat_warmupPreload the private chat page in the background browser and preselect a model, so the next webchat_ask skips page load and model switching.
Instructions
Preload the private (temporary) chat page of the chosen service in the background browser, so the next webchat_ask skips the page load. With model (a label from webchat_models) the model is selected ahead of time too, and a later webchat_ask with the same model skips the switch. Meant for host integrations: call it when the user switches to a webchat model, and webchat_release when they switch away. Never an error when preloading is not possible (visible browser window, verification page, login required): warmed=false and the next webchat_ask just loads the page as usual.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Model label to select in advance (from webchat_models). A label that cannot be selected is ignored here; webchat_ask reports the error. | |
| provider | No | Which web chat service to use: chatgpt (ChatGPT), claude (Claude), grok (Grok), gemini (Gemini). Default chatgpt. | chatgpt |