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

Method UpdateChatComputerUseProvider

codersdk/chats.go:2599–2609  ·  view source on GitHub ↗

UpdateChatComputerUseProvider updates the deployment-wide computer use provider.

(ctx context.Context, req UpdateChatComputerUseProviderRequest)

Source from the content-addressed store, hash-verified

2597// UpdateChatComputerUseProvider updates the deployment-wide computer use
2598// provider.
2599func (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.
2612func (c *ExperimentalClient) GetChatWorkspaceTTL(ctx context.Context) (ChatWorkspaceTTLResponse, error) {

Callers 1

Calls 3

ReadBodyAsErrorFunction · 0.85
CloseMethod · 0.65
RequestMethod · 0.45

Tested by 1