MCPcopy Create free account
hub / github.com/compozy/agh / isOpenAICompatiblePath

Function isOpenAICompatiblePath

internal/api/httpapi/middleware.go:298–303  ·  view source on GitHub ↗
(c *gin.Context)

Source from the content-addressed store, hash-verified

296}
297
298func isOpenAICompatiblePath(c *gin.Context) bool {
299 if c == nil || c.Request == nil || c.Request.URL == nil {
300 return false
301 }
302 return strings.HasPrefix(c.Request.URL.Path, "/api/openai/")
303}

Callers 2

corsMiddlewareFunction · 0.85
loopbackGuardFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected