spring-ai icon indicating copy to clipboard operation
spring-ai copied to clipboard

Add ApiKey support or similar to all AI Models

Open markpollack opened this issue 9 months ago • 0 comments
trafficstars

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 NoopApiKey implementation that sets the value to null
  • [ ] refactor current checking of NoopApiKey to 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

markpollack avatar Feb 18 '25 16:02 markpollack