init
This commit is contained in:
commit
5f8428a318
1688 files changed
+39031
No files matched your search
@@ -0,0 +1,25 @@
|
||||
using RecordBot.Services;
|
||||
using Xunit;
|
||||
|
||||
namespace RecordBot.Tests;
|
||||
|
||||
public class DashScopeImageEndpointTests
|
||||
{
|
||||
[Theory]
|
||||
[InlineData(
|
||||
"https://dashscope.aliyuncs.com/compatible-mode/v1",
|
||||
"https://dashscope.aliyuncs.com/api/v1/services/aigc/multimodal-generation/generation")]
|
||||
[InlineData(
|
||||
"https://dashscope.aliyuncs.com/compatible-mode/v1/",
|
||||
"https://dashscope.aliyuncs.com/api/v1/services/aigc/multimodal-generation/generation")]
|
||||
[InlineData(
|
||||
"https://dashscope.aliyuncs.com/api/v1",
|
||||
"https://dashscope.aliyuncs.com/api/v1/services/aigc/multimodal-generation/generation")]
|
||||
[InlineData(
|
||||
"",
|
||||
"https://dashscope.aliyuncs.com/api/v1/services/aigc/multimodal-generation/generation")]
|
||||
public void ResolveDashScopeImageEndpoint_FromChatBaseUrl(string baseUrl, string expected)
|
||||
{
|
||||
Assert.Equal(expected, QwenIntentClient.ResolveDashScopeImageEndpoint(baseUrl).ToString());
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user