Skip to content

Commit d505ee5

Browse files
committed
Merge branch 'kilian-tmp-exp'
2 parents 39c9477 + 1ac1bc0 commit d505ee5

10 files changed

Lines changed: 66 additions & 24 deletions

codeclash/agents/minisweagent.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@
1010
from minisweagent.models.test_models import DeterministicModel
1111
from minisweagent.run.utils.save import save_traj
1212

13+
from codeclash import REPO_DIR
1314
from codeclash.agents.player import Player
1415
from codeclash.agents.utils import GameContext
1516
from codeclash.utils.environment import copy_to_container
1617

1718
os.environ["MSWEA_MODEL_RETRY_STOP_AFTER_ATTEMPT"] = "90"
19+
os.environ["LITELLM_MODEL_REGISTRY_PATH"] = str((REPO_DIR / "configs" / "litellm_custom_model_config.yaml").resolve())
1820

1921

2022
class ClashAgent(DefaultAgent):
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{
2+
"dashscope/qwen3-coder-plus-2025-09-23": {
3+
"litellm_provider": "dashscope",
4+
"max_input_tokens": 997952,
5+
"max_output_tokens": 65536,
6+
"max_tokens": 1000000,
7+
"mode": "chat",
8+
"source": "https://www.alibabacloud.com/help/en/model-studio/models",
9+
"supports_function_calling": true,
10+
"supports_reasoning": true,
11+
"supports_tool_choice": true,
12+
"tiered_pricing": [
13+
{
14+
"cache_read_input_token_cost": 1e-07,
15+
"input_cost_per_token": 1e-06,
16+
"output_cost_per_token": 5e-06,
17+
"range": [
18+
0,
19+
32000.0
20+
]
21+
},
22+
{
23+
"cache_read_input_token_cost": 1.8e-07,
24+
"input_cost_per_token": 1.8e-06,
25+
"output_cost_per_token": 9e-06,
26+
"range": [
27+
32000.0,
28+
128000.0
29+
]
30+
},
31+
{
32+
"cache_read_input_token_cost": 3e-07,
33+
"input_cost_per_token": 3e-06,
34+
"output_cost_per_token": 1.5e-05,
35+
"range": [
36+
128000.0,
37+
256000.0
38+
]
39+
},
40+
{
41+
"cache_read_input_token_cost": 6e-07,
42+
"input_cost_per_token": 6e-06,
43+
"output_cost_per_token": 6e-05,
44+
"range": [
45+
256000.0,
46+
1000000.0
47+
]
48+
}
49+
]
50+
}
51+
}

configs/main/HuskyBench__claude-sonnet-4-20250514__qwen3-coder-plus-2025-09-23__r15__s100.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ players:
2020
config:
2121
agent: !include mini/default.yaml
2222
model:
23-
model_name: qwen3-coder-plus-2025-09-23
24-
model_class: dashscope
25-
litellm_model_name_override: deepinfra/Qwen/Qwen3-Coder-480B-A35B-Instruct
23+
model_name: dashscope/qwen3-coder-plus-2025-09-23
2624
model_kwargs:
2725
temperature: 0.2
2826
prompts:

configs/main/HuskyBench__claude-sonnet-4-5-20250929__qwen3-coder-plus-2025-09-23__r15__s100.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ players:
2020
config:
2121
agent: !include mini/default.yaml
2222
model:
23-
model_name: qwen3-coder-plus-2025-09-23
24-
model_class: dashscope
25-
litellm_model_name_override: deepinfra/Qwen/Qwen3-Coder-480B-A35B-Instruct
23+
model_name: dashscope/qwen3-coder-plus-2025-09-23
2624
model_kwargs:
2725
temperature: 0.2
2826
prompts:

configs/main/HuskyBench__gemini-2.5-pro__qwen3-coder-plus-2025-09-23__r15__s100.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ players:
1919
config:
2020
agent: !include mini/default.yaml
2121
model:
22-
model_name: qwen3-coder-plus-2025-09-23
23-
model_class: dashscope
24-
litellm_model_name_override: deepinfra/Qwen/Qwen3-Coder-480B-A35B-Instruct
22+
model_name: dashscope/qwen3-coder-plus-2025-09-23
2523
model_kwargs:
2624
temperature: 0.2
2725
prompts:

configs/main/HuskyBench__gpt-5-mini__qwen3-coder-plus-2025-09-23__r15__s100.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ players:
1717
config:
1818
agent: !include mini/default.yaml
1919
model:
20-
model_name: qwen3-coder-plus-2025-09-23
21-
model_class: dashscope
22-
litellm_model_name_override: deepinfra/Qwen/Qwen3-Coder-480B-A35B-Instruct
20+
model_name: dashscope/qwen3-coder-plus-2025-09-23
2321
model_kwargs:
2422
temperature: 0.2
2523
prompts:

configs/main/HuskyBench__gpt-5__qwen3-coder-plus-2025-09-23__r15__s100.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ players:
1717
config:
1818
agent: !include mini/default.yaml
1919
model:
20-
model_name: qwen3-coder-plus-2025-09-23
21-
model_class: dashscope
22-
litellm_model_name_override: deepinfra/Qwen/Qwen3-Coder-480B-A35B-Instruct
20+
model_name: dashscope/qwen3-coder-plus-2025-09-23
2321
model_kwargs:
2422
temperature: 0.2
2523
prompts:

configs/main/HuskyBench__grok-code-fast-1__qwen3-coder-plus-2025-09-23__r15__s100.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ players:
2020
config:
2121
agent: !include mini/default.yaml
2222
model:
23-
model_name: qwen3-coder-plus-2025-09-23
24-
model_class: dashscope
25-
litellm_model_name_override: deepinfra/Qwen/Qwen3-Coder-480B-A35B-Instruct
23+
model_name: dashscope/qwen3-coder-plus-2025-09-23
2624
model_kwargs:
2725
temperature: 0.2
2826
prompts:

configs/main/HuskyBench__o3__qwen3-coder-plus-2025-09-23__r15__s100.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ players:
1010
config:
1111
agent: !include mini/default.yaml
1212
model:
13-
model_name: qwen3-coder-plus-2025-09-23
14-
model_class: dashscope
15-
litellm_model_name_override: deepinfra/Qwen/Qwen3-Coder-480B-A35B-Instruct
13+
model_name: dashscope/qwen3-coder-plus-2025-09-23
1614
model_kwargs:
1715
temperature: 0.2
1816
- agent: mini

configs/models.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,12 @@
3535
# drop_params: true
3636
# reasoning_effort: "high"
3737
# verbosity: "medium"
38-
- model_name: "qwen3-coder-plus-2025-09-23"
39-
model_class: dashscope
40-
litellm_model_name_override: "deepinfra/Qwen/Qwen3-Coder-480B-A35B-Instruct"
38+
# - model_name: "qwen3-coder-plus-2025-09-23"
39+
# model_class: dashscope
40+
# litellm_model_name_override: "deepinfra/Qwen/Qwen3-Coder-480B-A35B-Instruct"
41+
# model_kwargs:
42+
# temperature: 0.2
43+
- model_name: "dashscope/qwen3-coder-plus-2025-09-23"
4144
model_kwargs:
4245
temperature: 0.2
4346
- model_name: "@openai/o3"

0 commit comments

Comments
 (0)