Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 30 additions & 2 deletions src/libs/Anam/Generated/Anam.AvatarsClient.CreateAvatar.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,40 @@ partial void ProcessCreateAvatarResponseContent(
}
var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent();
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.DisplayName}"),
content: new global::System.Net.Http.StringContent(request.DisplayName ?? string.Empty),
name: "\"displayName\"");
if (request.ImageFile != default)
{

var __contentImageFile = new global::System.Net.Http.ByteArrayContent(request.ImageFile ?? global::System.Array.Empty<byte>());
__contentImageFile.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue(
request.ImageFilename is null
? "application/octet-stream"
: (global::System.IO.Path.GetExtension(request.ImageFilename) ?? string.Empty).ToLowerInvariant() switch
{
".aac" => "audio/aac",
".flac" => "audio/flac",
".gif" => "image/gif",
".jpeg" => "image/jpeg",
".jpg" => "image/jpeg",
".json" => "application/json",
".m4a" => "audio/mp4",
".mp3" => "audio/mpeg",
".mp4" => "video/mp4",
".mpeg" => "audio/mpeg",
".mpga" => "audio/mpeg",
".oga" => "audio/ogg",
".ogg" => "audio/ogg",
".opus" => "audio/ogg",
".pdf" => "application/pdf",
".png" => "image/png",
".txt" => "text/plain",
".wav" => "audio/wav",
".weba" => "audio/webm",
".webm" => "video/webm",
".webp" => "image/webp",
_ => "application/octet-stream",
});
__httpRequestContent.Add(
content: __contentImageFile,
name: "\"imageFile\"",
Expand All @@ -138,7 +166,7 @@ partial void ProcessCreateAvatarResponseContent(
{

__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.ImageUrl}"),
content: new global::System.Net.Http.StringContent(request.ImageUrl ?? string.Empty),
name: "\"imageUrl\"");
}
__httpRequest.Content = __httpRequestContent;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ partial void ProcessDeleteAvatarResponse(
PrepareDeleteAvatarRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
id: id);
id: id!);

return __httpRequest;
}
Expand Down
2 changes: 1 addition & 1 deletion src/libs/Anam/Generated/Anam.AvatarsClient.GetAvatar.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ partial void ProcessGetAvatarResponseContent(
PrepareGetAvatarRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
id: id);
id: id!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ partial void ProcessUpdateAvatarResponseContent(
PrepareUpdateAvatarRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
id: id,
id: id!,
request: request);

return __httpRequest;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ partial void ProcessDeleteKnowledgeDocumentResponse(
PrepareDeleteKnowledgeDocumentRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
id: id);
id: id!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ partial void ProcessDeleteKnowledgeGroupResponse(
PrepareDeleteKnowledgeGroupRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
id: id);
id: id!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ partial void ProcessGetKnowledgeDocumentResponseContent(
PrepareGetKnowledgeDocumentRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
id: id);
id: id!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ partial void ProcessGetKnowledgeDocumentDownloadResponseContent(
PrepareGetKnowledgeDocumentDownloadRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
id: id);
id: id!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ partial void ProcessGetKnowledgeGroupResponseContent(
PrepareGetKnowledgeGroupRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
id: id);
id: id!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ partial void ProcessListKnowledgeGroupDocumentsResponseContent(
PrepareListKnowledgeGroupDocumentsRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
id: id);
id: id!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ partial void ProcessSearchKnowledgeGroupResponseContent(
PrepareSearchKnowledgeGroupRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
id: id,
id: id!,
request: request);

return __httpRequest;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ partial void ProcessUpdateKnowledgeDocumentResponseContent(
PrepareUpdateKnowledgeDocumentRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
id: id,
id: id!,
request: request);

return __httpRequest;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ partial void ProcessUpdateKnowledgeGroupResponseContent(
PrepareUpdateKnowledgeGroupRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
id: id,
id: id!,
request: request);

return __httpRequest;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,37 @@ partial void ProcessUploadKnowledgeGroupDocumentResponseContent(
}
var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent();
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{id}"),
content: new global::System.Net.Http.StringContent(id ?? string.Empty),
name: "\"id\"");
var __contentFile = new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty<byte>());
__contentFile.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue(
request.Filename is null
? "application/octet-stream"
: (global::System.IO.Path.GetExtension(request.Filename) ?? string.Empty).ToLowerInvariant() switch
{
".aac" => "audio/aac",
".flac" => "audio/flac",
".gif" => "image/gif",
".jpeg" => "image/jpeg",
".jpg" => "image/jpeg",
".json" => "application/json",
".m4a" => "audio/mp4",
".mp3" => "audio/mpeg",
".mp4" => "video/mp4",
".mpeg" => "audio/mpeg",
".mpga" => "audio/mpeg",
".oga" => "audio/ogg",
".ogg" => "audio/ogg",
".opus" => "audio/ogg",
".pdf" => "application/pdf",
".png" => "image/png",
".txt" => "text/plain",
".wav" => "audio/wav",
".weba" => "audio/webm",
".webm" => "video/webm",
".webp" => "image/webp",
_ => "application/octet-stream",
});
__httpRequestContent.Add(
content: __contentFile,
name: "\"file\"",
Expand All @@ -139,14 +167,14 @@ partial void ProcessUploadKnowledgeGroupDocumentResponseContent(
{

__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.ChunkSize}"),
content: new global::System.Net.Http.StringContent(global::System.Convert.ToString(request.ChunkSize, global::System.Globalization.CultureInfo.InvariantCulture) ?? string.Empty),
name: "\"chunkSize\"");
}
if (request.ChunkOverlap != default)
{

__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.ChunkOverlap}"),
content: new global::System.Net.Http.StringContent(global::System.Convert.ToString(request.ChunkOverlap, global::System.Globalization.CultureInfo.InvariantCulture) ?? string.Empty),
name: "\"chunkOverlap\"");
}
__httpRequest.Content = __httpRequestContent;
Expand All @@ -161,7 +189,7 @@ partial void ProcessUploadKnowledgeGroupDocumentResponseContent(
PrepareUploadKnowledgeGroupDocumentRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
id: id,
id: id!,
request: request);

return __httpRequest;
Expand Down
2 changes: 1 addition & 1 deletion src/libs/Anam/Generated/Anam.LLMsClient.DeleteLlm.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ partial void ProcessDeleteLlmResponse(
PrepareDeleteLlmRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
id: id);
id: id!);

return __httpRequest;
}
Expand Down
2 changes: 1 addition & 1 deletion src/libs/Anam/Generated/Anam.LLMsClient.GetLlm.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ partial void ProcessGetLlmResponseContent(
PrepareGetLlmRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
id: id);
id: id!);

return __httpRequest;
}
Expand Down
2 changes: 1 addition & 1 deletion src/libs/Anam/Generated/Anam.LLMsClient.UpdateLlm.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ partial void ProcessUpdateLlmResponseContent(
PrepareUpdateLlmRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
id: id,
id: id!,
request: request);

return __httpRequest;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ partial void ProcessDeletePersonaResponse(
PrepareDeletePersonaRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
id: id);
id: id!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ partial void ProcessGetPersonaResponseContent(
PrepareGetPersonaRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
id: id);
id: id!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ partial void ProcessUpdatePersonaResponseContent(
PrepareUpdatePersonaRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
id: id,
id: id!,
request: request);

return __httpRequest;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ partial void ProcessGetSessionResponseContent(
PrepareGetSessionRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
id: id);
id: id!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ partial void ProcessGetSessionRecordingResponseContent(
PrepareGetSessionRecordingRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
id: id);
id: id!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ partial void ProcessGetSessionTranscriptResponseContent(
PrepareGetSessionTranscriptRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
id: id);
id: id!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ partial void ProcessDeleteShareLinkResponse(
PrepareDeleteShareLinkRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
id: id);
id: id!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ partial void ProcessGetShareLinkResponseContent(
PrepareGetShareLinkRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
id: id);
id: id!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ partial void ProcessUpdateShareLinkResponseContent(
PrepareUpdateShareLinkRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
id: id,
id: id!,
request: request);

return __httpRequest;
Expand Down
2 changes: 1 addition & 1 deletion src/libs/Anam/Generated/Anam.ToolsClient.DeleteTool.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ partial void ProcessDeleteToolResponse(
PrepareDeleteToolRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
id: id);
id: id!);

return __httpRequest;
}
Expand Down
2 changes: 1 addition & 1 deletion src/libs/Anam/Generated/Anam.ToolsClient.GetTool.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ partial void ProcessGetToolResponseContent(
PrepareGetToolRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
id: id);
id: id!);

return __httpRequest;
}
Expand Down
2 changes: 1 addition & 1 deletion src/libs/Anam/Generated/Anam.ToolsClient.UpdateTool.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ partial void ProcessUpdateToolResponseContent(
PrepareUpdateToolRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
id: id,
id: id!,
request: request);

return __httpRequest;
Expand Down
Loading