Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
LotfiAghel committed Dec 1, 2024
2 parents 722b42a + f4d245e commit 4be8508
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenAI_API/EndpointBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ private async Task<HttpResponseMessage> HttpRequestRaw(string url = null, HttpMe
}
else
{
string jsonContent = JsonConvert.SerializeObject(postData, new JsonSerializerSettings() { NullValueHandling = NullValueHandling.Ignore });
string jsonContent = JsonConvert.SerializeObject(postData, new JsonSerializerSettings() { NullValueHandling = NullValueHandling.Ignore ,TypeNameHandling=TypeNameHandling.None});
var stringContent = new StringContent(jsonContent, UnicodeEncoding.UTF8, "application/json");
req.Content = stringContent;
}
Expand Down

0 comments on commit 4be8508

Please # to comment.