MCPcopy
hub / github.com/QuantumNous/new-api / SetContextKey

Function SetContextKey

common/gin.go:157–159  ·  view source on GitHub ↗
(c *gin.Context, key constant.ContextKey, value any)

Source from the content-addressed store, hash-verified

155}
156
157func SetContextKey(c *gin.Context, key constant.ContextKey, value any) {
158 c.Set(string(key), value)
159}
160
161func GetContextKey(c *gin.Context, key constant.ContextKey) (any, bool) {
162 return c.Get(string(key))

Calls 1

SetMethod · 0.80