UpdateChatPlanModeInstructions updates the deployment-wide plan mode instructions.
(ctx context.Context, req UpdateChatPlanModeInstructionsRequest)
| 2402 | |
| 2403 | // UpdateChatPlanModeInstructions updates the deployment-wide plan mode instructions. |
| 2404 | func (c *ExperimentalClient) UpdateChatPlanModeInstructions(ctx context.Context, req UpdateChatPlanModeInstructionsRequest) error { |
| 2405 | res, err := c.Request(ctx, http.MethodPut, "/api/experimental/chats/config/plan-mode-instructions", req) |
| 2406 | if err != nil { |
| 2407 | return err |
| 2408 | } |
| 2409 | defer res.Body.Close() |
| 2410 | if res.StatusCode != http.StatusNoContent { |
| 2411 | return ReadBodyAsError(res) |
| 2412 | } |
| 2413 | return nil |
| 2414 | } |
| 2415 | |
| 2416 | // GetChatModelOverride returns the deployment-wide chat model override for |
| 2417 | // the requested context. |