Open
Description
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:
- Spring.ai.model.chat=none configuration does not take effect #3444
- spring.ai.chat.client.enable=false not working #3561
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