ValueError: not enough values to unpack (expected 2, got 0)`. This crashes whenever a Pydantic `BaseModel` field or any response type is annotated as plain `dict` and the library tries to dese

这个报错通常出现在用 OpenAI Python SDK 反序列化模型响应时,某个 Pydantic BaseModel 字段或响应类型被标注为“裸” dict (没有任何类型参数),SDK 的 construct_type() 仍按 Dict[K, V] 去解包类型参数,于是触发 ValueErr








