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