Skip to content

Commit

Permalink
[BUG]: Fix Bailing API configs (#1570)
Browse files Browse the repository at this point in the history
  • Loading branch information
cuauty authored Sep 27, 2024
1 parent e8437db commit 85a2887
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions opencompass/models/bailing_api_oc.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ def __init__(
self._headers = {'Authorization': f'Bearer {token}'}
else:
raise RuntimeError('There is not valid token.')
else:
self._headers = {'Authorization': f'Bearer {token}'}

self._headers['Content-Type'] = 'application/json'
self._url = url if url else \
'https://bailingchat.alipay.com/chat/completions'
Expand Down

0 comments on commit 85a2887

Please sign in to comment.