MCPcopy Create free account
hub / github.com/coder/coder / handleResponses

Method handleResponses

scaletest/llmmock/server.go:287–291  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

285}
286
287func (s *Server) handleResponses(w http.ResponseWriter, r *http.Request) {
288 pproflabel.Do(r.Context(), pproflabel.Service("llm-mock"), func(ctx context.Context) {
289 s.handleResponsesWithLabels(w, r.WithContext(ctx))
290 })
291}
292
293func (s *Server) handleResponsesWithLabels(w http.ResponseWriter, r *http.Request) {
294 s.logger.Debug(r.Context(), "handling OpenAI responses request")

Callers

nothing calls this directly

Calls 5

DoFunction · 0.92
ServiceFunction · 0.92
WithContextMethod · 0.80
ContextMethod · 0.65

Tested by

no test coverage detected