diff --git a/opencompass/models/bailing_api_oc.py b/opencompass/models/bailing_api_oc.py index d4368a36..8e107556 100644 --- a/opencompass/models/bailing_api_oc.py +++ b/opencompass/models/bailing_api_oc.py @@ -77,6 +77,9 @@ class BailingAPI(BaseAPIModel): 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'