UpdateChatSystemPrompt updates the deployment-wide chat system prompt.
(ctx context.Context, req UpdateChatSystemPromptRequest)
| 2375 | |
| 2376 | // UpdateChatSystemPrompt updates the deployment-wide chat system prompt. |
| 2377 | func (c *ExperimentalClient) UpdateChatSystemPrompt(ctx context.Context, req UpdateChatSystemPromptRequest) error { |
| 2378 | res, err := c.Request(ctx, http.MethodPut, "/api/experimental/chats/config/system-prompt", req) |
| 2379 | if err != nil { |
| 2380 | return err |
| 2381 | } |
| 2382 | defer res.Body.Close() |
| 2383 | if res.StatusCode != http.StatusNoContent { |
| 2384 | return ReadBodyAsError(res) |
| 2385 | } |
| 2386 | return nil |
| 2387 | } |
| 2388 | |
| 2389 | // GetChatPlanModeInstructions returns the deployment-wide plan mode instructions. |
| 2390 | func (c *ExperimentalClient) GetChatPlanModeInstructions(ctx context.Context) (ChatPlanModeInstructionsResponse, error) { |