Documentation
¶
Index ¶
Constants ¶
View Source
const ( ErrTypeInvalidRequest = "invalid_request_error" ErrTypeAPI = "api_error" ErrTypeAuthentication = "authentication_error" ErrTypeStream = "stream_error" )
Anthropic-compatible error type constants.
Variables ¶
This section is empty.
Functions ¶
func WriteError ¶
func WriteError(w http.ResponseWriter, status int, errType, message string)
WriteError writes an Anthropic-compatible JSON error response.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.