fixing ITs

This commit is contained in:
Dmytro Liubarskyi 2026-04-01 09:38:03 +02:00
parent d971fe0df3
commit d6ee17a7e6
2 changed files with 23 additions and 0 deletions

View File

@ -86,4 +86,19 @@ class AzureOpenAiChatModelIT extends AbstractChatModelIT {
protected ChatRequestParameters saveTokens(ChatRequestParameters parameters) {
return parameters; // Azure OpenAI does not support max_tokens any more, only max_completion_tokens
}
@Override
@Disabled("Setting 'max_tokens' and 'max_completion_tokens' at the same time is not supported.")
protected void should_respect_common_parameters_wrapped_in_integration_specific_class_in_chat_request(ChatModel model) {}
@Override
@Disabled("Setting 'max_tokens' and 'max_completion_tokens' at the same time is not supported.")
protected void should_respect_common_parameters_wrapped_in_integration_specific_class_in_default_model_parameters() {}
@Override
@Disabled("Setting 'max_tokens' and 'max_completion_tokens' at the same time is not supported.")
protected void should_respect_maxOutputTokens_in_chat_request(ChatModel model) {}
@Override
@Disabled("Setting 'max_tokens' and 'max_completion_tokens' at the same time is not supported.")
protected void should_respect_maxOutputTokens_in_default_model_parameters() {}
}

View File

@ -136,6 +136,14 @@ class AzureOpenAiStreamingChatModelIT extends AbstractStreamingChatModelIT {
return parameters; // Azure OpenAI does not support max_tokens any more, only max_completion_tokens
}
@Override
@Disabled("Setting 'max_tokens' and 'max_completion_tokens' at the same time is not supported.")
protected void should_respect_common_parameters_wrapped_in_integration_specific_class_in_chat_request(StreamingChatModel model) {}
@Override
@Disabled("Setting 'max_tokens' and 'max_completion_tokens' at the same time is not supported.")
protected void should_respect_maxOutputTokens_in_chat_request(StreamingChatModel model) {}
@AfterEach
void afterEach() throws InterruptedException {
String ciDelaySeconds = System.getenv("CI_DELAY_SECONDS_AZURE_OPENAI");