Skip to content

Commit

Permalink
set max_token
Browse files Browse the repository at this point in the history
  • Loading branch information
bioerrorlog committed Feb 4, 2024
1 parent 2db7b47 commit bb20259
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion robot_gpt/robot.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ def call_gpt4v(self) -> str:
logger.info(f"Prompts: {self.prompts}")
response = client.chat.completions.create(
model="gpt-4-vision-preview",
messages=self.prompts
messages=self.prompts,
max_tokens=1200,
)
content = response.choices[0].message.content
logger.info(f"Response content: {content}")
Expand Down

0 comments on commit bb20259

Please sign in to comment.