bugfix
This commit is contained in:
parent
d7355ac092
commit
8b3a266784
@ -1,4 +1,4 @@
|
||||
prompt = params_kw.prompt
|
||||
prompt = params_kw.prompt or "推荐部署千问3.5-16B大模型的主机"
|
||||
client_ip = request['client_ip']
|
||||
if client_ip not in ['180.76.115.73', '180.76.111.84']:
|
||||
raise Exception(f'Client invalid({client_ip})')
|
||||
@ -6,9 +6,8 @@ await remember_user('BDfl0Ts-sZp_UgRDGfDM4', 'sword', '0')
|
||||
url = 'https://dev.opencomputing.cn/product/get_ncmatch_publish_product_to_model.dspy'
|
||||
hc = StreamHttpClient()
|
||||
try:
|
||||
data = hc.request('GET', url)
|
||||
data = await hc.request('GET', url)
|
||||
if data:
|
||||
|
||||
d = DictObject(**json.loads(data.decode('utf-8')))
|
||||
if d is None:
|
||||
raise Exception(f'{url} return none')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user