OpenCompass/opencompass/configs/models/openai/gpt_4o_2024_11_20.py
2025-03-12 17:29:46 +08:00

22 lines
584 B
Python

from opencompass.models import OpenAI
api_meta_template = dict(round=[
dict(role='HUMAN', api_role='HUMAN'),
dict(role='BOT', api_role='BOT', generate=True),
], )
models = [
dict(
abbr='GPT-4o-2024-11-20',
type=OpenAI,
path='gpt-4o-2024-11-20',
key=
'ENV', # The key will be obtained from $OPENAI_API_KEY, but you can write down your key here as well
openai_proxy_url='ENV',
meta_template=api_meta_template,
query_per_second=1,
max_out_len=8192,
max_seq_len=8192,
batch_size=8),
]