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

Method stringify_items

src/openai/_qs.py:51–63  ·  view source on GitHub ↗
(
        self,
        params: Params,
        *,
        array_format: ArrayFormat | NotGiven = not_given,
        nested_format: NestedFormat | NotGiven = not_given,
    )

Source from the content-addressed store, hash-verified

49 )
50
51 def stringify_items(
52 self,
53 params: Params,
54 *,
55 array_format: ArrayFormat | NotGiven = not_given,
56 nested_format: NestedFormat | NotGiven = not_given,
57 ) -> list[tuple[str, str]]:
58 opts = Options(
59 qs=self,
60 array_format=array_format,
61 nested_format=nested_format,
62 )
63 return flatten([self._stringify_item(key, value, opts) for key, value in params.items()])
64
65 def _stringify_item(
66 self,

Callers 2

stringifyMethod · 0.95

Calls 4

_stringify_itemMethod · 0.95
OptionsClass · 0.85
flattenFunction · 0.85
itemsMethod · 0.45

Tested by

no test coverage detected