MCPcopy Create free account
hub / github.com/aurora-develop/aurora / isStreamTrue

Function isStreamTrue

initialize/handlers.go:903–909  ·  view source on GitHub ↗

isStreamTrue 把任意形式的 stream 字段值转换为 bool。

(v string)

Source from the content-addressed store, hash-verified

901
902// isStreamTrue 把任意形式的 stream 字段值转换为 bool。
903func isStreamTrue(v string) bool {
904 switch strings.ToLower(strings.TrimSpace(v)) {
905 case "true", "1", "yes", "on":
906 return true
907 }
908 return false
909}
910
911// ─────────────────────────────────────────────────────────────────────────────
912// /v1/images/edits 与 /v1/images/variations

Callers 1

runImageEditFlowMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected