Skip to content

Commit 428538b

Browse files
committed
Handle temperature for gpt-5 models in HTTP client
Updated KoalaHttpClientHandler to also remove the 'temperature' parameter for models starting with 'gpt-5', in addition to those starting with 'o'. This ensures correct request formatting for these model types.
1 parent 2023d04 commit 428538b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/KoalaWiki/KoalaHttpClientHander.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ protected override async Task<HttpResponseMessage> SendAsync(
3030
}
3131

3232
// GPT o系列不能传递温度
33-
if (model.StartsWith("o"))
33+
if (model.StartsWith("o") || model.StartsWith("gpt-5"))
3434
{
3535
json.Remove("temperature");
3636
}

0 commit comments

Comments
 (0)