-
Notifications
You must be signed in to change notification settings - Fork 222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Some Test Cases for DashScope Components #424
Add Some Test Cases for DashScope Components #424
Conversation
spring-ai-alibaba-core/src/test/java/com/alibaba/cloud/ai/dashscope/api/ApiUtilsTests.java
Outdated
Show resolved
Hide resolved
spring-ai-alibaba-core/src/test/java/com/alibaba/cloud/ai/dashscope/api/ApiUtilsTests.java
Show resolved
Hide resolved
import org.mockito.Mockito; | ||
import org.springframework.ai.model.function.FunctionCallback; | ||
|
||
import java.util.*; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
使用增量导入,别用全量引入
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resolved
...libaba-core/src/test/java/com/alibaba/cloud/ai/dashscope/chat/DashScopeChatOptionsTests.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks
PR: Add Test Cases for DashScope WebSocket and Metadata Components
Changes Overview
Added comprehensive test cases to improve code coverage and quality for DashScope components:
Added
DashScopeWebSocketClientOptionsTests
Added
DashScopeAudioTranscriptionResponseMetadataTests
Added
DashScopeAiUsageTests
Implementation Details
Testing
All tests pass successfully with good coverage. Key metrics: