spring-projects / spring-projects/spring-ai

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

Open
#3,566 4 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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:

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.