Skip to content

Feature Request: Add a Property to Disable All AI Models at Once #3566

@dev-jonghoonpark

Description

@dev-jonghoonpark

Context

Users often encounter confusion when setting spring.ai.model.chat=none, as they may not have considered other types of models beyond chat model.

related issues:

To address this, I propose introducing a spring.ai.model.all property that allows disabling all models at once.

Current Behavior

Each module needs to be disabled manually.

For example, in the case of the OpenAI module:

spring.ai.model.chat=none
spring.ai.model.audio.speech=none
spring.ai.model.audio.transcription=none
spring.ai.model.image=none
spring.ai.model.embedding=none
spring.ai.model.moderation=none

Expected Behavior

When the property spring.ai.model.all is set, all model types should be disabled.

spring.ai.model.all=none

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions