update tips
This commit is contained in:
@@ -55,8 +55,8 @@ def _call_with_requests(config: LLMConfig, prompt: str) -> str:
|
|||||||
)
|
)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# 设置超时时间为 60 秒,避免无限等待
|
# 设置超时时间为 120 秒,避免无限等待
|
||||||
with urllib.request.urlopen(req, timeout=60) as response:
|
with urllib.request.urlopen(req, timeout=120) as response:
|
||||||
result = json.loads(response.read().decode('utf-8'))
|
result = json.loads(response.read().decode('utf-8'))
|
||||||
return result['choices'][0]['message']['content']
|
return result['choices'][0]['message']['content']
|
||||||
except urllib.error.HTTPError as e:
|
except urllib.error.HTTPError as e:
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ ai:
|
|||||||
max_parse_retries: 3
|
max_parse_retries: 3
|
||||||
|
|
||||||
game:
|
game:
|
||||||
init_npc_num: 12
|
init_npc_num: 9
|
||||||
sect_num: 3 # init_npc_num大于sect_num时,会随机选择sect_num个宗门
|
sect_num: 3 # init_npc_num大于sect_num时,会随机选择sect_num个宗门
|
||||||
npc_birth_rate_per_month: 0
|
npc_birth_rate_per_month: 0
|
||||||
fortune_probability: 0.005
|
fortune_probability: 0.005
|
||||||
|
|||||||
@@ -52,6 +52,7 @@ const tips = [
|
|||||||
'天命之子特质的角色,好运连连,奇遇不断',
|
'天命之子特质的角色,好运连连,奇遇不断',
|
||||||
'现代世界的穿越者,只想回到现实世界,但这是不可能的',
|
'现代世界的穿越者,只想回到现实世界,但这是不可能的',
|
||||||
'丹药有生效的时间限制',
|
'丹药有生效的时间限制',
|
||||||
|
'由于大模型需要思考,游戏启动可能耗时较久',
|
||||||
]
|
]
|
||||||
|
|
||||||
const currentTip = ref(tips[Math.floor(Math.random() * tips.length)])
|
const currentTip = ref(tips[Math.floor(Math.random() * tips.length)])
|
||||||
|
|||||||
Reference in New Issue
Block a user