Skip to content

Commit

Permalink
Merge pull request #607 from yt3trees/bugfix_azure_assistants_api_que…
Browse files Browse the repository at this point in the history
…rystring

Fixed a bug in the Azure Assistants API query string
  • Loading branch information
kayhantolga authored Jul 11, 2024
2 parents 9009a1d + c61704a commit 4b72578
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions OpenAI.SDK/EndpointProviders/AzureOpenAiEndpointProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ public string AssistantList(PaginationRequest? assistantListRequest)
var query = assistantListRequest?.GetQueryParameters();
if (!string.IsNullOrWhiteSpace(query))
{
url = $"{url}{query}";
url = $"{url}&{query}";
}

return url;
Expand Down Expand Up @@ -239,7 +239,7 @@ public string AssistantFileList(string assistantId, PaginationRequest? assistant
var query = assistantFileListRequest?.GetQueryParameters();
if (!string.IsNullOrWhiteSpace(query))
{
url = $"{url}{query}";
url = $"{url}&{query}";
}

return url;
Expand Down Expand Up @@ -287,7 +287,7 @@ public string MessageList(string threadId, PaginationRequest? messageListRequest
var query = messageListRequest?.GetQueryParameters();
if (!string.IsNullOrWhiteSpace(query))
{
url = $"{url}{query}";
url = $"{url}&{query}";
}

return url;
Expand Down Expand Up @@ -320,7 +320,7 @@ public string RunList(string threadId, PaginationRequest? runListRequest)
var query = runListRequest?.GetQueryParameters();
if (!string.IsNullOrWhiteSpace(query))
{
url = $"{url}{query}";
url = $"{url}&{query}";
}

return url;
Expand Down Expand Up @@ -353,7 +353,7 @@ public string RunStepList(string threadId, string runId, PaginationRequest? runS
var query = runStepListRequest?.GetQueryParameters();
if (!string.IsNullOrWhiteSpace(query))
{
url = $"{url}{query}";
url = $"{url}&{query}";
}

return url;
Expand All @@ -372,7 +372,7 @@ public string VectorStoreList(PaginationRequest baseListRequest)
var query = baseListRequest?.GetQueryParameters();
if (!string.IsNullOrWhiteSpace(query))
{
url = $"{url}?{query}";
url = $"{url}&{query}";
}

return url;
Expand Down Expand Up @@ -415,7 +415,7 @@ public string VectorStoreFileList(string vectorStoreId, VectorStoreFileListReque
var query = baseListRequest?.GetQueryParameters();
if (!string.IsNullOrWhiteSpace(query))
{
url = $"{url}?{query}";
url = $"{url}&{query}";
}

return url;
Expand Down Expand Up @@ -443,7 +443,7 @@ public string VectorStoreFileBatchList(string vectorStoreId, string batchId, Pag
var query = baseListRequest?.GetQueryParameters();
if (!string.IsNullOrWhiteSpace(query))
{
url = $"{url}?{query}";
url = $"{url}&{query}";
}

return url;
Expand Down

0 comments on commit 4b72578

Please sign in to comment.