Skip to content

Commit f4d245e

Browse files
committed
fix settings
1 parent 8e80c75 commit f4d245e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

OpenAI_API/EndpointBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ private async Task<HttpResponseMessage> HttpRequestRaw(string url = null, HttpMe
125125
}
126126
else
127127
{
128-
string jsonContent = JsonConvert.SerializeObject(postData, new JsonSerializerSettings() { NullValueHandling = NullValueHandling.Ignore });
128+
string jsonContent = JsonConvert.SerializeObject(postData, new JsonSerializerSettings() { NullValueHandling = NullValueHandling.Ignore ,TypeNameHandling=TypeNameHandling.None});
129129
var stringContent = new StringContent(jsonContent, UnicodeEncoding.UTF8, "application/json");
130130
req.Content = stringContent;
131131
}

0 commit comments

Comments
 (0)