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

Whether multiple APIkeys conflict?

Open yuluo-yx opened this issue 1 year ago • 2 comments

  • For https://github.com/spring-projects/spring-ai/blob/ee19ee1db958f02982a29ff13d8fb04d6d415b08/spring-ai-spring-boot-autoconfigure/src/main/java/org/springframework/ai/autoconfigure/azure/openai/AzureOpenAiAutoConfiguration.java#L62

This apiKey is currently set globally, so if there are multiple apikeys in an application, will there be conflicts? Is it put into mode filesl? It can be solved by passing apiKey through request.

yuluo-yx avatar Jul 15 '24 13:07 yuluo-yx

@tzolov Can you give some suggestions? please

yuluo-yx avatar Jul 15 '24 13:07 yuluo-yx

I'd also like to have the possibility to set the apikey at runtime (when actually doing the call)

LaSylv avatar Dec 14 '24 17:12 LaSylv

There is this new PR that should help. #3037

markpollack avatar May 09 '25 15:05 markpollack

@yuluo-yx Hope the mutate option addressed via #3037 helps with your use case. Please feel free to re-open the issue if your case requires any specific support from Spring AI. Thanks!

ilayaperumalg avatar Jun 02 '25 12:06 ilayaperumalg