mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-25 14:55:00 +00:00
gpt-4-vision-preiview can receive 128k tokens
This commit is contained in:
parent
58ba202b51
commit
dc6aeb638d
1 changed files with 1 additions and 1 deletions
|
@ -175,7 +175,7 @@ class Commands:
|
||||||
|
|
||||||
# Check if any images are in the chat and override the max context window size if so
|
# Check if any images are in the chat and override the max context window size if so
|
||||||
image_in_chat = any(relative_fname.endswith(ext) for ext in IMAGE_EXTENSIONS for relative_fname in self.coder.get_inchat_relative_files())
|
image_in_chat = any(relative_fname.endswith(ext) for ext in IMAGE_EXTENSIONS for relative_fname in self.coder.get_inchat_relative_files())
|
||||||
limit = 4096 if image_in_chat else self.coder.main_model.max_context_tokens
|
limit = 128000 if image_in_chat else self.coder.main_model.max_context_tokens
|
||||||
remaining = limit - total
|
remaining = limit - total
|
||||||
if remaining > 1024:
|
if remaining > 1024:
|
||||||
self.io.tool_output(f"{cost_pad}{fmt(remaining)} tokens remaining in context window")
|
self.io.tool_output(f"{cost_pad}{fmt(remaining)} tokens remaining in context window")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue