MCPcopy
hub / github.com/QwenLM/Qwen / _dump_json

Function _dump_json

openai_api.py:460–464  ·  view source on GitHub ↗
(data: BaseModel, *args, **kwargs)

Source from the content-addressed store, hash-verified

458
459
460def _dump_json(data: BaseModel, *args, **kwargs) -> str:
461 try:
462 return data.model_dump_json(*args, **kwargs)
463 except AttributeError: # pydantic<2.0.0
464 return data.json(*args, **kwargs) # noqa
465
466
467async def predict(

Callers 1

predictFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected