Download harness/settings.py from zhiyuanhucs/agent-benchmark-eval-code: direct link, hf CLI and curl.
- Browser
- Download file 951 Bytes
-
https://huggingface.co/datasets/zhiyuanhucs/agent-benchmark-eval-code/resolve/main/harness/settings.py
- Command line
-
hf download hf://datasets/zhiyuanhucs/agent-benchmark-eval-code/harness/settings.py
-
curl -L -o settings.py https://huggingface.co/datasets/zhiyuanhucs/agent-benchmark-eval-code/resolve/main/harness/settings.py
951 Bytes
| import json | |
| import os | |
| MODEL = os.environ.get('BENCH_MODEL', 'model') | |
| def opencode_config(sid, token, port): | |
| return { | |
| '$schema': 'https://opencode.ai/config.json', | |
| 'model': 'collection/' + MODEL, 'autoupdate': False, | |
| 'provider': {'collection': { | |
| 'name': 'Evaluation API', 'npm': '@ai-sdk/openai-compatible', | |
| 'options': {'baseURL': f"http://{os.environ['BENCH_GATEWAY_HOST']}:{port}/v1/{sid}", 'apiKey': token}, | |
| 'models': {MODEL: { | |
| 'name': MODEL, 'limit': {'context': int(os.environ['BENCH_CONTEXT']), 'output': int(os.environ['BENCH_MAX_TOKENS'])}, | |
| 'reasoning': True, 'interleaved': {'field': 'reasoning_content'}, | |
| 'options': {'reasoningEffort': os.environ.get('BENCH_REASONING', 'high')}, | |
| 'modalities': {'input': ['text'], 'output': ['text']}, | |
| }}, | |
| }}, 'permission': 'allow', 'snapshot': False, | |
| } | |