mirror of
https://github.com/open-compass/opencompass.git
synced 2025-05-30 16:03:24 +08:00
[BUG]: Fix Bailing API configs (#1570)
This commit is contained in:
parent
e8437db98f
commit
85a28874aa
@ -77,6 +77,9 @@ class BailingAPI(BaseAPIModel):
|
|||||||
self._headers = {'Authorization': f'Bearer {token}'}
|
self._headers = {'Authorization': f'Bearer {token}'}
|
||||||
else:
|
else:
|
||||||
raise RuntimeError('There is not valid token.')
|
raise RuntimeError('There is not valid token.')
|
||||||
|
else:
|
||||||
|
self._headers = {'Authorization': f'Bearer {token}'}
|
||||||
|
|
||||||
self._headers['Content-Type'] = 'application/json'
|
self._headers['Content-Type'] = 'application/json'
|
||||||
self._url = url if url else \
|
self._url = url if url else \
|
||||||
'https://bailingchat.alipay.com/chat/completions'
|
'https://bailingchat.alipay.com/chat/completions'
|
||||||
|
Loading…
Reference in New Issue
Block a user