MCPcopy
hub / github.com/openai/openai-python / _primitive_value_to_str

Method _primitive_value_to_str

src/openai/_qs.py:120–128  ·  view source on GitHub ↗
(self, value: PrimitiveData)

Source from the content-addressed store, hash-verified

118 return [(key, serialised)]
119
120 def _primitive_value_to_str(self, value: PrimitiveData) -> str:
121 # copied from httpx
122 if value is True:
123 return "true"
124 elif value is False:
125 return "false"
126 elif value is None:
127 return ""
128 return str(value)
129
130
131_qs = Querystring()

Callers 1

_stringify_itemMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected