spring-projects / spring-projects/spring-ai
Feature Request: Add a Property to Disable All AI Models at Once
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 9.5k
- Forks
- 2.9k
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 6
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:
- https://github.com/spring-projects/spring-ai/issues/3444
- https://github.com/spring-projects/spring-ai/issues/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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing how the existing spring.ai.model.* properties are handled across the model modules, using the listed property names as entry points. Verify that setting spring.ai.model.all=none disables chat, audio, image, embedding, and moderation models, and add or update coverage for that behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring-boot
- Domain
- ai, backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100