These are the ones that need to change
BedrockTitanChatAutoConfigurationandBedrockTitanEmbeddingAutoConfigurationshare aTitanEmbeddingBedrockApibean definition.HuggingfaceAutoConfigurationshould be renamedHuggingfaceChatAutoConfigurationas it only contains autoconfiguration for the ChatClientOllamaChatAutoConfigurationandOllamaEmbeddingAutoConfigurationshould be merged intoOllamaAutoConfigurationas they share aOllamaApibean definition.
Comment From: markpollack
Upon deeper review, BedrockTitanChatAutoConfiguration and BedrockTitanEmbeddingAutoConfiguration use underlying connectivity classes, TitanChatBedrockApi and TitanEmbeddingBedrockApi so they need to remain separate. The bean name for these connectivity classes was the same, this should be changed for clarity.
The merge should happen for the case of Ollama.
The HuggingfaceAutoConfiguration was renamed HuggingfaceChatAutoConfiguration