Skip to content

Commit 0cea0d7

Browse files
committed
fix: use gpt-4 which maps to gemini-1.5-flash-latest
1 parent fef5ad8 commit 0cea0d7

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

‎scripts/mac_start_hackingbuddygpt_against_a_container.sh‎

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,23 @@ echo
5454

5555
PORT=$(docker ps | grep ansible-ready-ubuntu | cut -d ':' -f2 | cut -d '-' -f1)
5656

57+
# http://localhost:8080 is genmini-openai-proxy
58+
59+
# gpt-4 maps to gemini-1.5-flash-latest
60+
61+
# https://github.com/zhu327/gemini-openai-proxy/blob/559085101f0ce5e8c98a94fb75fefd6c7a63d26d/README.md?plain=1#L146
62+
63+
# | gpt-4 | gemini-1.5-flash-latest |
64+
65+
# https://github.com/zhu327/gemini-openai-proxy/blob/559085101f0ce5e8c98a94fb75fefd6c7a63d26d/pkg/adapter/models.go#L60-L61
66+
67+
# case strings.HasPrefix(openAiModelName, openai.GPT4):
68+
# return Gemini1Dot5Flash
69+
70+
# Hence use gpt-4 below in --llm.model=gpt-4
71+
5772
# Gemini free tier has a limit of 15 requests per minute, and 1500 requests per day
58-
# Hence --max_turns 999999999 will exceed the daily limit
5973

60-
# http://localhost:8080 is genmini-openai-proxy
74+
# Hence --max_turns 999999999 will exceed the daily limit
6175

62-
wintermute LinuxPrivesc --llm.api_key=$GEMINI_API_KEY --llm.model=gemini-1.5-flash-latest --llm.context_size=1000000 --conn.host=localhost --conn.port $PORT --conn.username=lowpriv --conn.password=trustno1 --conn.hostname=test1 --llm.api_url=http://localhost:8080 --llm.api_backoff=60 --max_turns 999999999
76+
wintermute LinuxPrivesc --llm.api_key=$GEMINI_API_KEY --llm.model=gpt-4 --llm.context_size=1000000 --conn.host=localhost --conn.port $PORT --conn.username=lowpriv --conn.password=trustno1 --conn.hostname=test1 --llm.api_url=http://localhost:8080 --llm.api_backoff=60 --max_turns 999999999

0 commit comments

Comments
 (0)