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

Method validateRequest

aibridge/intercept/responses/base.go:133–141  ·  view source on GitHub ↗
(ctx context.Context, w http.ResponseWriter)

Source from the content-addressed store, hash-verified

131}
132
133func (i *responsesInterceptionBase) validateRequest(ctx context.Context, w http.ResponseWriter) error {
134 if i.reqPayload.background() {
135 err := xerrors.New("background requests are currently not supported by AI Bridge")
136 i.sendCustomErr(ctx, w, http.StatusNotImplemented, err)
137 return err
138 }
139
140 return nil
141}
142
143// writeUpstreamError marshals and writes a given error.
144func (i *responsesInterceptionBase) writeUpstreamError(w http.ResponseWriter, oaiErr *intercept.ResponseError) {

Callers 2

ProcessRequestMethod · 0.80
ProcessRequestMethod · 0.80

Calls 3

sendCustomErrMethod · 0.95
backgroundMethod · 0.80
NewMethod · 0.65

Tested by

no test coverage detected