Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ethereum-package
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
ethereum-package
Commits
ca37ead8
Commit
ca37ead8
authored
Feb 23, 2025
by
luxq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add ai config in bunnyfinder
parent
c4ae15e5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
0 deletions
+13
-0
network_params.yaml
network_params.yaml
+3
-0
bunnyfinder_launcher.star
src/bunnyfinder/bunnyfinder_launcher.star
+1
-0
input_parser.star
src/package_io/input_parser.star
+6
-0
sanity_check.star
src/package_io/sanity_check.star
+3
-0
No files found.
network_params.yaml
View file @
ca37ead8
...
...
@@ -31,4 +31,7 @@ bunnyfinder_params:
dbconnect
:
'
eth:12345678@tcp(172.17.0.1:3306)/eth'
max_malicious_idx
:
"
85"
duration_per_strategy
:
"
30"
openai_key
:
"
"
openai_base_url
:
"
"
llm_model
:
"
"
src/bunnyfinder/bunnyfinder_launcher.star
View file @
ca37ead8
...
...
@@ -131,6 +131,7 @@ def get_config(
files={
BUNNYFINDER_CONFIG_MOUNT_DIRPATH_ON_SERVICE: config_files_artifact_name,
},
env_vars={"OPENAI_API_KEY": bunnyfinder_params.openai_key, "OPENAI_BASE_URL": bunnyfinder_params.openai_base_url, "LLM_MODEL": bunnyfinder_params.llm_model},
cmd=["--config", config_file_path,
"--strategy", bunnyfinder_params.strategy,
"--duration-per-strategy-run", bunnyfinder_params.duration_per_strategy,
...
...
src/package_io/input_parser.star
View file @
ca37ead8
...
...
@@ -470,6 +470,9 @@ def input_parser(plan, input_args):
duration_per_strategy=result["bunnyfinder_params"]["duration_per_strategy"],
min_malicious_idx=result["bunnyfinder_params"]["min_malicious_idx"],
max_malicious_idx=result["bunnyfinder_params"]["max_malicious_idx"],
openai_key=result["bunnyfinder_params"]["openai_key"],
openai_base_url=result["bunnyfinder_params"]["openai_base_url"],
llm_model=result["bunnyfinder_params"]["llm_model"],
),
additional_services=result["additional_services"],
wait_for_finalization=result["wait_for_finalization"],
...
...
@@ -1215,6 +1218,9 @@ def get_default_bunnyfinder_params():
"duration_per_strategy": "60",
"min_malicious_idx": "0",
"max_malicious_idx": "31",
"openai_key": "",
"openai_base_url": "",
"llm_model": "",
}
...
...
src/package_io/sanity_check.star
View file @
ca37ead8
...
...
@@ -261,6 +261,9 @@ SUBCATEGORY_PARAMS = {
"duration_per_strategy",
"max_malicious_idx",
"min_malicious_idx",
"openai_key",
"openai_base_url",
"llm_model",
],
"port_publisher": [
"nat_exit_ip",
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment