_normalize_image_source#
Connect a provider and configure retries, credentials, and transport. See the guide.
- zett_agent.providers.base._normalize_image_source(part, detail=ImageDetail.AUTO)[源代码]#
Normalize a typed image source into an OpenAI-compatible content block.
- 参数:
part (ImageUrlSource | ImageBytesSource)
detail (ImageDetail)
- 返回类型:
ChatCompletionContentPartImageParam