spring-projects / spring-projects/spring-ai
Add ApiKey support or similar to all AI Models
Open
@asaikali is already working on this.
Since Apr 3, 2025.
epic
- Dominant language
- Java
- Stars
- 9.5k
- Forks
- 2.9k
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 6
Description
The work done with OpenAI to use the ApiKey interface to return the key set in the http header needs to be applied to other models.
In most cases, the same SimpleApiKey implementation can be used, However, for Amazon and Google, a new AmazonCredentials and GoogleCredentials object that is part of those projects should be created. Here is the todo list for the epic
- Models that use single api key
- Google Models
- Amazon Models
Other tasks
- Document the
NoopApiKeyimplementation that sets the value to null - refactor current checking of
NoopApiKeyto check instead for no-value. If no value is returned, don't set the header. See https://github.com/spring-projects/spring-ai/pull/2219/files#r1960074601
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.
Assessment
This issue has not been assessed yet.