MCPcopy Index your code
hub / github.com/docker/docker-agent / dataURL

Function dataURL

pkg/runtime/sampling.go:200–206  ·  view source on GitHub ↗
(mimeType string, data []byte)

Source from the content-addressed store, hash-verified

198}
199
200func dataURL(mimeType string, data []byte) string {
201 mt := mimeType
202 if mt == "" {
203 mt = "application/octet-stream"
204 }
205 return "data:" + mt + ";base64," + base64.StdEncoding.EncodeToString(data)
206}
207
208// samplingModelOptions translates the server's advisory preferences into
209// the host's model options. Only MaxTokens is honoured today (with an

Callers 2

TestDataURLFunction · 0.85
samplingContentToChatFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestDataURLFunction · 0.68