feat: add remaining

This commit is contained in:
fanjin.fjy
2023-07-01 21:15:30 +08:00
parent bf8cba2343
commit ae95a98cd4
12 changed files with 134 additions and 82 deletions

View File

@ -44,6 +44,9 @@ public class AzureOpenAiStreamClient {
*/
public AzureOpenAiStreamClient(String apiKey, String endpoint, String deployId) {
this.deployId = deployId;
if (StringUtils.isBlank(apiKey)) {
return;
}
this.client = new OpenAIClientBuilder()
.credential(new AzureKeyCredential(apiKey))
.endpoint(endpoint)