llm-dialog-manager 0.4.2__tar.gz → 0.4.3__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {llm_dialog_manager-0.4.2 → llm_dialog_manager-0.4.3}/PKG-INFO +1 -1
- {llm_dialog_manager-0.4.2 → llm_dialog_manager-0.4.3}/llm_dialog_manager/__init__.py +1 -1
- {llm_dialog_manager-0.4.2 → llm_dialog_manager-0.4.3}/llm_dialog_manager/agent.py +2 -2
- {llm_dialog_manager-0.4.2 → llm_dialog_manager-0.4.3}/llm_dialog_manager.egg-info/PKG-INFO +1 -1
- {llm_dialog_manager-0.4.2 → llm_dialog_manager-0.4.3}/pyproject.toml +1 -1
- {llm_dialog_manager-0.4.2 → llm_dialog_manager-0.4.3}/LICENSE +0 -0
- {llm_dialog_manager-0.4.2 → llm_dialog_manager-0.4.3}/README.md +0 -0
- {llm_dialog_manager-0.4.2 → llm_dialog_manager-0.4.3}/llm_dialog_manager/chat_history.py +0 -0
- {llm_dialog_manager-0.4.2 → llm_dialog_manager-0.4.3}/llm_dialog_manager/key_manager.py +0 -0
- {llm_dialog_manager-0.4.2 → llm_dialog_manager-0.4.3}/llm_dialog_manager.egg-info/SOURCES.txt +0 -0
- {llm_dialog_manager-0.4.2 → llm_dialog_manager-0.4.3}/llm_dialog_manager.egg-info/dependency_links.txt +0 -0
- {llm_dialog_manager-0.4.2 → llm_dialog_manager-0.4.3}/llm_dialog_manager.egg-info/requires.txt +0 -0
- {llm_dialog_manager-0.4.2 → llm_dialog_manager-0.4.3}/llm_dialog_manager.egg-info/top_level.txt +0 -0
- {llm_dialog_manager-0.4.2 → llm_dialog_manager-0.4.3}/setup.cfg +0 -0
- {llm_dialog_manager-0.4.2 → llm_dialog_manager-0.4.3}/tests/test_agent.py +0 -0
- {llm_dialog_manager-0.4.2 → llm_dialog_manager-0.4.3}/tests/test_chat_history.py +0 -0
- {llm_dialog_manager-0.4.2 → llm_dialog_manager-0.4.3}/tests/test_key_manager.py +0 -0
@@ -389,7 +389,7 @@ class Agent:
|
|
389
389
|
if image_path:
|
390
390
|
if not os.path.exists(image_path):
|
391
391
|
raise FileNotFoundError(f"Image file {image_path} does not exist.")
|
392
|
-
if "gemini" in self.model_name:
|
392
|
+
if "gemini" in self.model_name and "openai" not in self.model_name:
|
393
393
|
# For Gemini, load as PIL.Image
|
394
394
|
image_pil = Image.open(image_path)
|
395
395
|
image_block = image_pil
|
@@ -406,7 +406,7 @@ class Agent:
|
|
406
406
|
}
|
407
407
|
else:
|
408
408
|
# If image_url is provided
|
409
|
-
if "gemini" in self.model_name:
|
409
|
+
if "gemini" in self.model_name and "openai" not in self.model_name:
|
410
410
|
# For Gemini, you can pass image URLs directly
|
411
411
|
image_block = {"type": "image_url", "image_url": {"url": image_url}}
|
412
412
|
else:
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
4
4
|
|
5
5
|
[project]
|
6
6
|
name = "llm_dialog_manager"
|
7
|
-
version = "0.4.
|
7
|
+
version = "0.4.3"
|
8
8
|
description = "A Python package for managing LLM chat conversation history"
|
9
9
|
readme = "README.md"
|
10
10
|
classifiers = [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Scientific/Engineering :: Artificial Intelligence",]
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{llm_dialog_manager-0.4.2 → llm_dialog_manager-0.4.3}/llm_dialog_manager.egg-info/SOURCES.txt
RENAMED
File without changes
|
File without changes
|
{llm_dialog_manager-0.4.2 → llm_dialog_manager-0.4.3}/llm_dialog_manager.egg-info/requires.txt
RENAMED
File without changes
|
{llm_dialog_manager-0.4.2 → llm_dialog_manager-0.4.3}/llm_dialog_manager.egg-info/top_level.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|