-
Notifications
You must be signed in to change notification settings - Fork 963
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added feature to customize the OpenAIClientBuilder whilst retaining t…
…he default auto-configuration Signed-off-by: Manuel Andreo Garcia <manuel@magware.dev>
- Loading branch information
1 parent
1c41c6a
commit dc3279b
Showing
3 changed files
with
61 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
...java/org/springframework/ai/autoconfigure/azure/openai/OpenAIClientBuilderCustomizer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package org.springframework.ai.autoconfigure.azure.openai; | ||
|
||
import com.azure.ai.openai.OpenAIClientBuilder; | ||
|
||
/** | ||
* Callback interface that can be implemented by beans wishing to customize the | ||
* {@link OpenAIClientBuilder} whilst retaining the default auto-configuration. | ||
*/ | ||
@FunctionalInterface | ||
public interface OpenAIClientBuilderCustomizer { | ||
|
||
/** | ||
* Customize the {@link OpenAIClientBuilder}. | ||
* @param clientBuilder the {@link OpenAIClientBuilder} to customize | ||
*/ | ||
void customize(OpenAIClientBuilder clientBuilder); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters