优化API调用超时提示信息,增加空回复重试逻辑(应该能用)
This commit is contained in:
committed by
Windpicker-owo
parent
634337b28b
commit
df3616e481
@@ -159,6 +159,8 @@ def _build_generation_config(
|
||||
config = {
|
||||
"maxOutputTokens": max_tokens,
|
||||
"temperature": temperature,
|
||||
"topK": 1,
|
||||
"topP": 1,
|
||||
}
|
||||
|
||||
# 处理响应格式
|
||||
|
||||
Reference in New Issue
Block a user