|
@@ -362,7 +362,6 @@ namespace OASystem.API.OAMethodLib.DeepSeekAPI
|
|
|
PropertyNamingPolicy = JsonNamingPolicy.CamelCase
|
|
PropertyNamingPolicy = JsonNamingPolicy.CamelCase
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
- _httpClient.Timeout = TimeSpan.FromMinutes(10);
|
|
|
|
|
var httpContent = new StringContent(jsonContent, Encoding.UTF8, "application/json");
|
|
var httpContent = new StringContent(jsonContent, Encoding.UTF8, "application/json");
|
|
|
var response = await _httpClient.PostAsync("chat/completions", httpContent);
|
|
var response = await _httpClient.PostAsync("chat/completions", httpContent);
|
|
|
response.EnsureSuccessStatusCode();
|
|
response.EnsureSuccessStatusCode();
|
|
@@ -426,8 +425,6 @@ namespace OASystem.API.OAMethodLib.DeepSeekAPI
|
|
|
PropertyNamingPolicy = JsonNamingPolicy.CamelCase
|
|
PropertyNamingPolicy = JsonNamingPolicy.CamelCase
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
- _httpClient.Timeout = TimeSpan.FromMinutes(10);
|
|
|
|
|
-
|
|
|
|
|
using var requestMsg = new HttpRequestMessage(HttpMethod.Post, "chat/completions")
|
|
using var requestMsg = new HttpRequestMessage(HttpMethod.Post, "chat/completions")
|
|
|
{
|
|
{
|
|
|
Content = new StringContent(jsonContent, Encoding.UTF8, "application/json")
|
|
Content = new StringContent(jsonContent, Encoding.UTF8, "application/json")
|