Skip to content

Commit

Permalink
remove max_tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
joshbickett committed Dec 19, 2024
1 parent a0674db commit b8a6d10
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion evaluate.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ def evaluate_final_screenshot(guideline):
presence_penalty=1,
frequency_penalty=1,
temperature=0.7,
max_tokens=300,
)

eval_content = response.choices[0].message.content
Expand Down
4 changes: 0 additions & 4 deletions operate/models/apis.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ def call_gpt_4o(messages):
presence_penalty=1,
frequency_penalty=1,
temperature=0.7,
max_tokens=3000,
)

content = response.choices[0].message.content
Expand Down Expand Up @@ -237,7 +236,6 @@ async def call_gpt_4o_with_ocr(messages, objective, model):
model="o1",
messages=messages,
temperature=0.7,
max_tokens=3000,
)

content = response.choices[0].message.content
Expand Down Expand Up @@ -352,7 +350,6 @@ async def call_o1_with_ocr(messages, objective, model):
model="gpt-4o",
messages=messages,
temperature=0.7,
max_tokens=3000,
)

content = response.choices[0].message.content
Expand Down Expand Up @@ -478,7 +475,6 @@ async def call_gpt_4o_labeled(messages, objective, model):
presence_penalty=1,
frequency_penalty=1,
temperature=0.7,
max_tokens=3000,
)

content = response.choices[0].message.content
Expand Down

0 comments on commit b8a6d10

Please sign in to comment.