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

Method handleOpenAI

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

Source from the content-addressed store, hash-verified

202}
203
204func (s *Server) handleOpenAI(w http.ResponseWriter, r *http.Request) {
205 pproflabel.Do(r.Context(), pproflabel.Service("llm-mock"), func(ctx context.Context) {
206 s.handleOpenAIWithLabels(w, r.WithContext(ctx))
207 })
208}
209
210func (s *Server) handleOpenAIWithLabels(w http.ResponseWriter, r *http.Request) {
211 s.logger.Debug(r.Context(), "handling OpenAI 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