-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
65 changed files
with
404 additions
and
72 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
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation"> | ||
<s:Boolean x:Key="/Default/Environment/Filtering/ExcludeCoverageFilters/=Cnblogs_002EDashScope_002ESample_003B_002A_003B_002A_003B_002A/@EntryIndexedValue">True</s:Boolean> | ||
<s:Boolean x:Key="/Default/Environment/Filtering/ExcludeCoverageFilters/=Cnblogs_002EDashScope_002ESdk_002ESnapshotGenerator_003B_002A_003B_002A_003B_002A/@EntryIndexedValue">True</s:Boolean> | ||
<s:Boolean x:Key="/Default/Environment/Filtering/ExcludeCoverageFilters/=Cnblogs_002EDashScope_002ESdk_002EUnitTests_003B_002A_003B_002A_003B_002A/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary> |
11 changes: 11 additions & 0 deletions
11
test/Cnblogs.DashScope.Sdk.SnapshotGenerator/Cnblogs.DashScope.Sdk.SnapshotGenerator.csproj
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,11 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<OutputType>Exe</OutputType> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Cnblogs.DashScope.Sdk.UnitTests\Cnblogs.DashScope.Sdk.UnitTests.csproj" /> | ||
</ItemGroup> | ||
|
||
</Project> |
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,85 @@ | ||
// See https://aka.ms/new-console-template for more information | ||
|
||
using System.Net; | ||
using System.Text; | ||
|
||
const string basePath = "../../../../Cnblogs.DashScope.Sdk.UnitTests/RawHttpData"; | ||
var snapshots = new DirectoryInfo(basePath); | ||
Console.Write("ApiKey > "); | ||
var apiKey = Console.ReadLine(); | ||
var handler = new SocketsHttpHandler() | ||
{ | ||
AutomaticDecompression = DecompressionMethods.All, | ||
}; | ||
var client = new HttpClient(handler) { BaseAddress = new Uri("https://dashscope.aliyuncs.com/api/v1/") }; | ||
client.DefaultRequestHeaders.Add("Authorization", $"Bearer {apiKey}"); | ||
|
||
while (true) | ||
{ | ||
Console.Write("Snapshot Name > "); | ||
var snapshotName = Console.ReadLine()?.Trim(); | ||
if (string.IsNullOrEmpty(snapshotName)) | ||
{ | ||
continue; | ||
} | ||
|
||
var snapshot = snapshots.EnumerateFiles().Where(s => s.Name.StartsWith(snapshotName)) | ||
.Select(s => s.Name.Split('.').First()).Distinct() | ||
.ToList(); | ||
if (snapshot.Count == 0) | ||
{ | ||
Console.WriteLine($"No snapshot was found with name: {snapshotName}"); | ||
} | ||
|
||
Console.WriteLine($"Updating {snapshot.Count} snapshots ..."); | ||
foreach (var name in snapshot) | ||
{ | ||
Console.WriteLine($"Updating {name}"); | ||
await UpdateSnapshotsAsync(client, name); | ||
Console.WriteLine($"{name} updated"); | ||
} | ||
} | ||
|
||
static async Task UpdateSnapshotsAsync(HttpClient client, string name) | ||
{ | ||
var requestHeader = await File.ReadAllLinesAsync(Path.Combine(basePath, $"{name}.request.header.txt")); | ||
var requestBodyFile = Path.Combine(basePath, $"{name}.request.body.json"); | ||
var requestBody = File.Exists(requestBodyFile) | ||
? await File.ReadAllTextAsync(Path.Combine(basePath, $"{name}.request.body.json")) | ||
: string.Empty; | ||
var firstLine = requestHeader[0].Split(' '); | ||
var method = HttpMethod.Parse(firstLine[0]); | ||
var request = new HttpRequestMessage(method, firstLine[1]); | ||
var contentType = "application/json"; | ||
foreach (var header in requestHeader.Skip(1)) | ||
{ | ||
var values = header.Split(':', StringSplitOptions.TrimEntries); | ||
if (values[0] == "Content-Type") | ||
{ | ||
contentType = values[1]; | ||
continue; | ||
} | ||
|
||
if (values[0] == "Content-Length") | ||
{ | ||
continue; | ||
} | ||
|
||
request.Headers.Add(values[0], values[1]); | ||
} | ||
|
||
if (string.IsNullOrWhiteSpace(requestBodyFile) == false) | ||
{ | ||
request.Content = new StringContent(requestBody, Encoding.Default, contentType); | ||
} | ||
|
||
var response = await client.SendAsync(request); | ||
var responseBody = await response.Content.ReadAsStringAsync(); | ||
var responseHeaderFile = new StringBuilder(); | ||
responseHeaderFile.AppendLine($"HTTP/1.1 {(int)response.StatusCode} {response.StatusCode}"); | ||
responseHeaderFile = response.Headers.Aggregate( | ||
responseHeaderFile, | ||
(sb, pair) => sb.AppendLine($"{pair.Key}: {string.Join(',', pair.Value)}")); | ||
await File.WriteAllTextAsync(Path.Combine(basePath, $"{name}.response.header.txt"), responseHeaderFile.ToString()); | ||
await File.WriteAllTextAsync(Path.Combine(basePath, $"{name}.response.body.txt"), responseBody); | ||
} |
File renamed without changes.
8 changes: 8 additions & 0 deletions
8
test/Cnblogs.DashScope.Sdk.UnitTests/RawHttpData/auth-error-nosse.request.header.txt
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,8 @@ | ||
POST /api/v1/services/aigc/text-generation/generation HTTP/1.1 | ||
Content-Type: application/json | ||
Accept: */* | ||
Cache-Control: no-cache | ||
Host: dashscope.aliyuncs.com | ||
Accept-Encoding: gzip, deflate, br | ||
Connection: keep-alive | ||
Content-Length: 429 |
2 changes: 1 addition & 1 deletion
2
test/Cnblogs.DashScope.Sdk.UnitTests/RawHttpData/auth-error-nosse.response.body.txt
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 |
---|---|---|
@@ -1 +1 @@ | ||
{"code":"InvalidApiKey","message":"No API-key provided.","request_id":"862e8e7a-1fb8-9a50-aa7b-a808c2a988ee"} | ||
{"code":"InvalidApiKey","message":"Invalid API-key provided.","request_id":"a1c0561c-1dfe-98a6-a62f-983577b8bc5e"} |
20 changes: 10 additions & 10 deletions
20
test/Cnblogs.DashScope.Sdk.UnitTests/RawHttpData/auth-error-nosse.response.header.txt
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
HTTP/1.1 401 Unauthorized | ||
content-type: application/json;charset=UTF-8 | ||
date: Mon, 26 Feb 2024 13:24:14 GMT | ||
x-envoy-upstream-service-time: 3 | ||
server: istio-envoy | ||
req-cost-time: 3 | ||
req-arrive-time: 1708953854889 | ||
resp-start-time: 1708953854892 | ||
content-length: 109 | ||
vary: Accept-Encoding | ||
HTTP/1.1 401 Unauthorized | ||
eagleeye-traceid: cf50104d0a2a79fb416deb06c226876d | ||
X-Request-ID: a1c0561c-1dfe-98a6-a62f-983577b8bc5e | ||
x-envoy-upstream-service-time: 4 | ||
Date: Mon, 25 Nov 2024 05:42:37 GMT | ||
Server: istio-envoy | ||
req-cost-time: 4 | ||
req-arrive-time: 1732513357578 | ||
resp-start-time: 1732513357583 | ||
Vary: Accept-Encoding |
File renamed without changes.
9 changes: 9 additions & 0 deletions
9
...nblogs.DashScope.Sdk.UnitTests/RawHttpData/background-generation-nosse.request.header.txt
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,9 @@ | ||
POST /api/v1/services/aigc/background-generation/generation/ HTTP/1.1 | ||
X-DashScope-Async: enable | ||
Content-Type: application/json | ||
Accept: */* | ||
Cache-Control: no-cache | ||
Host: dashscope.aliyuncs.com | ||
Accept-Encoding: gzip, deflate, br | ||
Connection: keep-alive | ||
Content-Length: 727 |
File renamed without changes.
9 changes: 9 additions & 0 deletions
9
...Cnblogs.DashScope.Sdk.UnitTests/RawHttpData/batch-text-embedding-nosse.request.header.txt
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,9 @@ | ||
POST /api/v1/services/embeddings/text-embedding/text-embedding HTTP/1.1 | ||
X-DashScope-Async: enable | ||
Content-Type: application/json | ||
Accept: */* | ||
Cache-Control: no-cache | ||
Host: dashscope.aliyuncs.com | ||
Accept-Encoding: gzip, deflate, br | ||
Connection: keep-alive | ||
Content-Length: 225 |
7 changes: 7 additions & 0 deletions
7
...nblogs.DashScope.Sdk.UnitTests/RawHttpData/cancel-completed-task-nosse.request.header.txt
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,7 @@ | ||
POST /api/v1/tasks/6075262c-b56d-4968-9abf-2a9784a90f3e/cancel HTTP/1.1 | ||
Accept: */* | ||
Cache-Control: no-cache | ||
Host: dashscope.aliyuncs.com | ||
Accept-Encoding: gzip, deflate, br | ||
Connection: keep-alive | ||
Content-Length: 0 |
File renamed without changes.
8 changes: 8 additions & 0 deletions
8
...ashScope.Sdk.UnitTests/RawHttpData/conversation-generation-message-sse.request.header.txt
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,8 @@ | ||
POST /api/v1/services/aigc/text-generation/generation HTTP/1.1 | ||
Accept: text/event-stream | ||
Content-Type: application/json | ||
Cache-Control: no-cache | ||
Host: dashscope.aliyuncs.com | ||
Accept-Encoding: gzip, deflate, br | ||
Connection: keep-alive | ||
Content-Length: 829 |
File renamed without changes.
8 changes: 8 additions & 0 deletions
8
...k.UnitTests/RawHttpData/conversation-generation-message-with-files-sse.request.header.txt
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,8 @@ | ||
POST /api/v1/services/aigc/text-generation/generation HTTP/1.1 | ||
Accept: text/event-stream | ||
Content-Type: application/json | ||
Cache-Control: no-cache | ||
Host: dashscope.aliyuncs.com | ||
Accept-Encoding: gzip, deflate, br | ||
Connection: keep-alive | ||
Content-Length: 729 |
6 changes: 6 additions & 0 deletions
6
test/Cnblogs.DashScope.Sdk.UnitTests/RawHttpData/delete-file-nosse.request.header.txt
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,6 @@ | ||
DELETE /api/v1/files/a4f34423-d413-4530-b167-b5180394f2ce HTTP/1.1 | ||
Accept: */* | ||
Cache-Control: no-cache | ||
Host: dashscope.aliyuncs.com | ||
Accept-Encoding: gzip, deflate, br | ||
Connection: keep-alive |
6 changes: 6 additions & 0 deletions
6
test/Cnblogs.DashScope.Sdk.UnitTests/RawHttpData/get-file-nosse.request.header.txt
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,6 @@ | ||
GET /api/v1/files/6f87e744-aaff-409c-b596-1b851554bd6d HTTP/1.1 | ||
Accept: */* | ||
Cache-Control: no-cache | ||
Host: dashscope.aliyuncs.com | ||
Accept-Encoding: gzip, deflate, br | ||
Connection: keep-alive |
6 changes: 6 additions & 0 deletions
6
...Sdk.UnitTests/RawHttpData/get-task-background-generation-success-nosse.request.header.txt
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,6 @@ | ||
GET /api/v1/tasks/b2e98d78-c79b-431c-b2d7-c7bcd54465da HTTP/1.1 | ||
Accept: */* | ||
Cache-Control: no-cache | ||
Host: dashscope.aliyuncs.com | ||
Accept-Encoding: gzip, deflate, br | ||
Connection: keep-alive |
6 changes: 6 additions & 0 deletions
6
....Sdk.UnitTests/RawHttpData/get-task-batch-text-embedding-success-nosse.request.header.txt
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,6 @@ | ||
GET /api/v1/tasks/7408ef3d-a0be-4379-9e72-a6e95a569483 HTTP/1.1 | ||
Accept: */* | ||
Cache-Control: no-cache | ||
Host: dashscope.aliyuncs.com | ||
Accept-Encoding: gzip, deflate, br | ||
Connection: keep-alive |
2 changes: 1 addition & 1 deletion
2
...e.Sdk.UnitTests/RawHttpData/get-task-batch-text-embedding-success-nosse.response.body.txt
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 |
---|---|---|
@@ -1 +1 @@ | ||
{"request_id":"b41afd70-251a-9625-97fd-63caf63edb44","output":{"task_id":"6075262c-b56d-4968-9abf-2a9784a90f3e","task_status":"SUCCEEDED","submit_time":"2024-03-01 10:38:04.485","scheduled_time":"2024-03-01 10:38:04.527","end_time":"2024-03-01 10:38:05.184","url":"https://dashscope-result-bj.oss-cn-beijing.aliyuncs.com/5fc5c860/2024-03-01/78a8c5e1-cc44-497e-b8c8-1a46e7e57d03_output_1709260685020.txt.gz?Expires=1709519885&OSSAccessKeyId=LTAI5tQZd8AEcZX6KZV4G8qL&Signature=lUaHmlf5XkjBBb8Yj3Y%2FZMb%2BhA4%3D"},"usage":{"total_tokens":28}} | ||
{"request_id":"0b2ebeda-a91b-948f-986a-d395cbf1d0e1","output":{"task_id":"7408ef3d-a0be-4379-9e72-a6e95a569483","task_status":"SUCCEEDED","submit_time":"2024-11-25 13:55:46.536","scheduled_time":"2024-11-25 13:55:46.557","end_time":"2024-11-25 13:55:47.446","url":"https://dashscope-result-bj.oss-cn-beijing.aliyuncs.com/5fc5c860/2024-11-25/c6c4456e-3c66-42ba-a52a-a16c58dda4d6_output_1732514147173.txt.gz?Expires=1732773347&OSSAccessKeyId=LTAI5tQZd8AEcZX6KZV4G8qL&Signature=perMNS1RdHHroUn2YnXxzTmOZtg%3D"},"usage":{"total_tokens":28}} |
21 changes: 10 additions & 11 deletions
21
...Sdk.UnitTests/RawHttpData/get-task-batch-text-embedding-success-nosse.response.header.txt
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 |
---|---|---|
@@ -1,11 +1,10 @@ | ||
HTTP/1.1 200 OK | ||
server: istio-envoy | ||
date: Fri, 01 Mar 2024 02:38:15 GMT | ||
content-type: application/json;charset=UTF-8 | ||
vary: Accept-Encoding | ||
content-encoding: gzip | ||
req-cost-time: 19 | ||
req-arrive-time: 1709260695190 | ||
resp-start-time: 1709260695210 | ||
x-envoy-upstream-service-time: 14 | ||
transfer-encoding: chunked | ||
HTTP/1.1 200 OK | ||
Server: istio-envoy | ||
Date: Mon, 25 Nov 2024 06:22:54 GMT | ||
Vary: Accept-Encoding | ||
req-cost-time: 53 | ||
req-arrive-time: 1732515774352 | ||
resp-start-time: 1732515774405 | ||
x-envoy-upstream-service-time: 45 | ||
Set-Cookie: acw_tc=0b2ebeda-a91b-948f-986a-d395cbf1d0e1c3946b1bf06c56f595663a7f43f68254;path=/;HttpOnly;Max-Age=1800 | ||
Transfer-Encoding: chunked |
6 changes: 6 additions & 0 deletions
6
...cope.Sdk.UnitTests/RawHttpData/get-task-image-generation-success-nosse.request.header.txt
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,6 @@ | ||
GET /api/v1/tasks/c4f94e00-5899-431b-9579-eb1ebe686379 HTTP/1.1 | ||
Accept: */* | ||
Cache-Control: no-cache | ||
Host: dashscope.aliyuncs.com | ||
Accept-Encoding: gzip, deflate, br | ||
Connection: keep-alive |
6 changes: 6 additions & 0 deletions
6
...Scope.Sdk.UnitTests/RawHttpData/get-task-image-synthesis-success-nosse.request.header.txt
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,6 @@ | ||
GET /api/v1/tasks/9e2b6ef6-285d-4efa-8651-4dbda7d571fa HTTP/1.1 | ||
Accept: */* | ||
Cache-Control: no-cache | ||
Host: dashscope.aliyuncs.com | ||
Accept-Encoding: gzip, deflate, br | ||
Connection: keep-alive |
6 changes: 6 additions & 0 deletions
6
test/Cnblogs.DashScope.Sdk.UnitTests/RawHttpData/get-task-running-nosse.request.header.txt
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,6 @@ | ||
GET /api/v1/tasks/1111 HTTP/1.1 | ||
Accept: */* | ||
Cache-Control: no-cache | ||
Host: dashscope.aliyuncs.com | ||
Accept-Encoding: gzip, deflate, br | ||
Connection: keep-alive |
6 changes: 6 additions & 0 deletions
6
test/Cnblogs.DashScope.Sdk.UnitTests/RawHttpData/get-task-unknown-nosse.request.header.txt
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,6 @@ | ||
GET /api/v1/tasks/edbd4e81-d37b-97f1-9857-d7394829dd0f HTTP/1.1 | ||
Accept: */* | ||
Cache-Control: no-cache | ||
Host: dashscope.aliyuncs.com | ||
Accept-Encoding: gzip, deflate, br | ||
Connection: keep-alive |
File renamed without changes.
9 changes: 9 additions & 0 deletions
9
test/Cnblogs.DashScope.Sdk.UnitTests/RawHttpData/image-generation-nosse.request.header.txt
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,9 @@ | ||
POST /api/v1/services/aigc/image-generation/generation HTTP/1.1 | ||
X-DashScope-Async: enable | ||
Content-Type: application/json | ||
Accept: */* | ||
Cache-Control: no-cache | ||
Host: dashscope.aliyuncs.com | ||
Accept-Encoding: gzip, deflate, br | ||
Connection: keep-alive | ||
Content-Length: 199 |
File renamed without changes.
9 changes: 9 additions & 0 deletions
9
test/Cnblogs.DashScope.Sdk.UnitTests/RawHttpData/image-synthesis-nosse.request.header.txt
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,9 @@ | ||
POST /api/v1/services/aigc/text2image/image-synthesis HTTP/1.1 | ||
X-DashScope-Async: enable | ||
Content-Type: application/json | ||
Accept: */* | ||
Cache-Control: no-cache | ||
Host: dashscope.aliyuncs.com | ||
Accept-Encoding: gzip, deflate, br | ||
Connection: keep-alive | ||
Content-Length: 218 |
6 changes: 6 additions & 0 deletions
6
test/Cnblogs.DashScope.Sdk.UnitTests/RawHttpData/list-files-nosse.request.header.txt
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,6 @@ | ||
GET /api/v1/files?page_no=1&page_size=1 HTTP/1.1 | ||
Accept: */* | ||
Cache-Control: no-cache | ||
Host: dashscope.aliyuncs.com | ||
Accept-Encoding: gzip, deflate, br | ||
Connection: keep-alive |
6 changes: 6 additions & 0 deletions
6
test/Cnblogs.DashScope.Sdk.UnitTests/RawHttpData/list-task-nosse.request.header.txt
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,6 @@ | ||
GET /api/v1/tasks HTTP/1.1 | ||
Accept: */* | ||
Cache-Control: no-cache | ||
Host: dashscope.aliyuncs.com | ||
Accept-Encoding: gzip, deflate, br | ||
Connection: keep-alive |
File renamed without changes.
8 changes: 8 additions & 0 deletions
8
....DashScope.Sdk.UnitTests/RawHttpData/multimodal-generation-audio-nosse.request.header.txt
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,8 @@ | ||
POST /api/v1/services/aigc/multimodal-generation/generation HTTP/1.1 | ||
Content-Type: application/json | ||
Accept: */* | ||
Cache-Control: no-cache | ||
Host: dashscope.aliyuncs.com | ||
Accept-Encoding: gzip, deflate, br | ||
Connection: keep-alive | ||
Content-Length: 673 |
File renamed without changes.
8 changes: 8 additions & 0 deletions
8
...gs.DashScope.Sdk.UnitTests/RawHttpData/multimodal-generation-audio-sse.request.header.txt
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,8 @@ | ||
POST /api/v1/services/aigc/multimodal-generation/generation HTTP/1.1 | ||
Accept: text/event-stream | ||
Content-Type: application/json | ||
Cache-Control: no-cache | ||
Host: dashscope.aliyuncs.com | ||
Accept-Encoding: gzip, deflate, br | ||
Connection: keep-alive | ||
Content-Length: 698 |
File renamed without changes.
8 changes: 8 additions & 0 deletions
8
...ogs.DashScope.Sdk.UnitTests/RawHttpData/multimodal-generation-vl-nosse.request.header.txt
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,8 @@ | ||
POST /api/v1/services/aigc/multimodal-generation/generation HTTP/1.1 | ||
Content-Type: application/json | ||
Accept: */* | ||
Cache-Control: no-cache | ||
Host: dashscope.aliyuncs.com | ||
Accept-Encoding: gzip, deflate, br | ||
Connection: keep-alive | ||
Content-Length: 376 |
File renamed without changes.
8 changes: 8 additions & 0 deletions
8
...blogs.DashScope.Sdk.UnitTests/RawHttpData/multimodal-generation-vl-sse.request.header.txt
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,8 @@ | ||
POST /api/v1/services/aigc/multimodal-generation/generation HTTP/1.1 | ||
Accept: text/event-stream | ||
Content-Type: application/json | ||
Cache-Control: no-cache | ||
Host: dashscope.aliyuncs.com | ||
Accept-Encoding: gzip, deflate, br | ||
Connection: keep-alive | ||
Content-Length: 704 |
File renamed without changes.
8 changes: 8 additions & 0 deletions
8
test/Cnblogs.DashScope.Sdk.UnitTests/RawHttpData/parameter-error-nosse.request.header.txt
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,8 @@ | ||
POST /api/v1/services/aigc/text-generation/generation HTTP/1.1 | ||
Content-Type: application/json | ||
Accept: */* | ||
Cache-Control: no-cache | ||
Host: dashscope.aliyuncs.com | ||
Accept-Encoding: gzip, deflate, br | ||
Connection: keep-alive | ||
Content-Length: 453 |
File renamed without changes.
8 changes: 8 additions & 0 deletions
8
test/Cnblogs.DashScope.Sdk.UnitTests/RawHttpData/parameter-error-sse.request.header.txt
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,8 @@ | ||
POST /api/v1/services/aigc/text-generation/generation HTTP/1.1 | ||
Content-Type: application/json | ||
Accept: */* | ||
Cache-Control: no-cache | ||
Host: dashscope.aliyuncs.com | ||
Accept-Encoding: gzip, deflate, br | ||
Connection: keep-alive | ||
Content-Length: 453 |
File renamed without changes.
8 changes: 8 additions & 0 deletions
8
...gs.DashScope.Sdk.UnitTests/RawHttpData/single-generation-message-nosse.request.header.txt
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,8 @@ | ||
POST /api/v1/services/aigc/text-generation/generation HTTP/1.1 | ||
Content-Type: application/json | ||
Accept: */* | ||
Cache-Control: no-cache | ||
Host: dashscope.aliyuncs.com | ||
Accept-Encoding: gzip, deflate, br | ||
Connection: keep-alive | ||
Content-Length: 537 |
File renamed without changes.
9 changes: 9 additions & 0 deletions
9
...logs.DashScope.Sdk.UnitTests/RawHttpData/single-generation-message-sse.request.header.txt
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,9 @@ | ||
POST /api/v1/services/aigc/text-generation/generation HTTP/1.1 | ||
Accept: text/event-stream | ||
Content-Type: application/json | ||
Cache-Control: no-cache | ||
Postman-Token: ab9653b6-26e2-4aeb-99f0-34235457fb17 | ||
Host: dashscope.aliyuncs.com | ||
Accept-Encoding: gzip, deflate, br | ||
Connection: keep-alive | ||
Content-Length: 536 |
File renamed without changes.
Oops, something went wrong.