MCPcopy
hub / github.com/openai/openai-go / WithQueryDel

Function WithQueryDel

option/requestoption.go:160–167  ·  view source on GitHub ↗

WithQueryDel returns a RequestOption that deletes the query value(s) associated with the key.

(key string)

Source from the content-addressed store, hash-verified

158
159// WithQueryDel returns a RequestOption that deletes the query value(s) associated with the key.
160func WithQueryDel(key string) RequestOption {
161 return requestconfig.RequestOptionFunc(func(r *requestconfig.RequestConfig) error {
162 query := r.Request.URL.Query()
163 query.Del(key)
164 r.Request.URL.RawQuery = query.Encode()
165 return nil
166 })
167}
168
169// WithJSONSet returns a RequestOption that sets the body's JSON value associated with the key.
170// The key accepts a string as defined by the [sjson format].

Callers

nothing calls this directly

Calls 2

RequestOptionFuncFuncType · 0.92
EncodeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…