mirror of
https://github.com/eigent-ai/eigent.git
synced 2026-05-30 11:55:12 +00:00
chore: update logic
This commit is contained in:
parent
c393488fc7
commit
a802b821b1
1 changed files with 4 additions and 1 deletions
|
|
@ -56,9 +56,12 @@ def multi_modal_agent(options: Chat):
|
|||
video_download_toolkit
|
||||
)
|
||||
# Subscription models always route through cloud models
|
||||
if options.is_cloud() or options.use_image_analysis:
|
||||
if options.is_cloud() or not options.use_image_analysis:
|
||||
image_analysis_toolkit = ImageAnalysisToolkit(options.project_id)
|
||||
else:
|
||||
logger.info(
|
||||
f"[MULTIMODAL] Using current model for image analysis: {options.model_platform}/{options.model_type}"
|
||||
)
|
||||
image_model = ModelFactory.create(
|
||||
model_platform=options.model_platform,
|
||||
model_type=options.model_type,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue