UpdateUserChatDebugLogging updates the current user's chat debug logging preference.
(ctx context.Context, req UpdateUserChatDebugLoggingRequest)
| 3002 | // UpdateUserChatDebugLogging updates the current user's chat debug |
| 3003 | // logging preference. |
| 3004 | func (c *ExperimentalClient) UpdateUserChatDebugLogging(ctx context.Context, req UpdateUserChatDebugLoggingRequest) error { |
| 3005 | res, err := c.Request(ctx, http.MethodPut, "/api/experimental/chats/config/user-debug-logging", req) |
| 3006 | if err != nil { |
| 3007 | return err |
| 3008 | } |
| 3009 | defer res.Body.Close() |
| 3010 | if res.StatusCode != http.StatusNoContent { |
| 3011 | return ReadBodyAsError(res) |
| 3012 | } |
| 3013 | return nil |
| 3014 | } |
| 3015 | |
| 3016 | // GetChatDebugRuns returns the debug runs for a chat. |
| 3017 | func (c *ExperimentalClient) GetChatDebugRuns(ctx context.Context, chatID uuid.UUID) ([]ChatDebugRunSummary, error) { |