ResponseFormatAdapterFactory

object ResponseFormatAdapterFactory : JsonAdapter.Factory(source)

OpenAI nests name and strict inside response_format.json_schema, while ResponseFormat.JsonSchema exposes strict and json_schema as constructor properties and stores name separately.

Functions

Link copied to clipboard
open override fun create(type: Type, annotations: Set<Annotation>, moshi: Moshi): JsonAdapter<*>?