UpdateChatComputerUseProvider updates the deployment-wide computer use provider.
(ctx context.Context, req UpdateChatComputerUseProviderRequest)
| 2597 | // UpdateChatComputerUseProvider updates the deployment-wide computer use |
| 2598 | // provider. |
| 2599 | func (c *ExperimentalClient) UpdateChatComputerUseProvider(ctx context.Context, req UpdateChatComputerUseProviderRequest) error { |
| 2600 | res, err := c.Request(ctx, http.MethodPut, "/api/experimental/chats/config/computer-use-provider", req) |
| 2601 | if err != nil { |
| 2602 | return err |
| 2603 | } |
| 2604 | defer res.Body.Close() |
| 2605 | if res.StatusCode != http.StatusNoContent { |
| 2606 | return ReadBodyAsError(res) |
| 2607 | } |
| 2608 | return nil |
| 2609 | } |
| 2610 | |
| 2611 | // GetChatWorkspaceTTL returns the configured chat workspace TTL. |
| 2612 | func (c *ExperimentalClient) GetChatWorkspaceTTL(ctx context.Context) (ChatWorkspaceTTLResponse, error) { |