MCPcopy Index your code
hub / github.com/coder/coder / UpdateChatPlanModeInstructions

Method UpdateChatPlanModeInstructions

codersdk/chats.go:2404–2414  ·  view source on GitHub ↗

UpdateChatPlanModeInstructions updates the deployment-wide plan mode instructions.

(ctx context.Context, req UpdateChatPlanModeInstructionsRequest)

Source from the content-addressed store, hash-verified

2402
2403// UpdateChatPlanModeInstructions updates the deployment-wide plan mode instructions.
2404func (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.

Callers 1

Calls 3

ReadBodyAsErrorFunction · 0.85
CloseMethod · 0.65
RequestMethod · 0.45

Tested by 1