Skip to content
1 min read · 152 words

@nhtio/adk/batteries/generation/openai

OpenAI media generation adapter battery — the environment-neutral generation battery and owner of the shared generation option base.

Remarks

Re-exports the adapter class, the multipart edit-image field-name constant, every option / wire-shape type alias (including the shared BaseGenerationAdapterOptions, GenerateOptions, EditOptions, and GenerationRetryConfig that future generation batteries build on), the validation schema + validateOptions wrapper, and the battery-scoped exceptions.

References

BaseGenerationAdapterOptions

Re-exports BaseGenerationAdapterOptions


E_INVALID_OPENAI_GENERATION_OPTIONS

Re-exports E_INVALID_OPENAI_GENERATION_OPTIONS


E_OPENAI_GENERATION_HTTP_ERROR

Re-exports E_OPENAI_GENERATION_HTTP_ERROR


E_OPENAI_GENERATION_MALFORMED_RESPONSE

Re-exports E_OPENAI_GENERATION_MALFORMED_RESPONSE


E_OPENAI_GENERATION_REQUEST_TIMEOUT

Re-exports E_OPENAI_GENERATION_REQUEST_TIMEOUT


EDIT_IMAGE_FIELD_NAME

Re-exports EDIT_IMAGE_FIELD_NAME


EditOptions

Re-exports EditOptions


GeneratedMediaOutput

Re-exports GeneratedMediaOutput


GenerateOptions

Re-exports GenerateOptions


GenerationRetryConfig

Re-exports GenerationRetryConfig


OpenAIEditOptions

Re-exports OpenAIEditOptions


OpenAIGenerateOptions

Re-exports OpenAIGenerateOptions


OpenAIGenerationAdapter

Re-exports OpenAIGenerationAdapter


OpenAIGenerationAdapterOptions

Re-exports OpenAIGenerationAdapterOptions


openAIGenerationOptionsSchema

Re-exports openAIGenerationOptionsSchema


OpenAIImagesGenerationRequestBody

Re-exports OpenAIImagesGenerationRequestBody


OpenAIImagesResponse

Re-exports OpenAIImagesResponse


validateOptions

Re-exports validateOptions