Skip to content

Streamlined ModelOptions APIs for chat, embedding, and image #1148

@ThomasVitale

Description

@ThomasVitale

While working on the initial observability support in Spring AI (delivered in #954), more common behaviour emerged across the different model providers with regards to the options used to customize model requests. It's worth surfacing those common options through the ChatOptions (e.g. model name, max tokens, stop sequences), EmbeddingOptions (e.g. dimensions, encoding format), and ImageOptions (e.g. image style) abstractions.

As agreed with @tzolov, I'll submit a PR for each of the three option variants and simply the observation contextual data accordingly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions