cat-llm 0.0.31__tar.gz → 0.0.32__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {cat_llm-0.0.31 → cat_llm-0.0.32}/PKG-INFO +1 -1
- {cat_llm-0.0.31 → cat_llm-0.0.32}/src/catllm/__about__.py +1 -1
- {cat_llm-0.0.31 → cat_llm-0.0.32}/src/catllm/__init__.py +1 -1
- {cat_llm-0.0.31 → cat_llm-0.0.32}/src/catllm/image_functions.py +3 -3
- {cat_llm-0.0.31 → cat_llm-0.0.32}/LICENSE +0 -0
- {cat_llm-0.0.31 → cat_llm-0.0.32}/README.md +0 -0
- {cat_llm-0.0.31 → cat_llm-0.0.32}/pyproject.toml +0 -0
- {cat_llm-0.0.31 → cat_llm-0.0.32}/src/catllm/CERAD_functions.py +0 -0
- /cat_llm-0.0.31/src/catllm/cat_llm.py → /cat_llm-0.0.32/src/catllm/text_functions.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cat-llm
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.32
|
|
4
4
|
Summary: A tool for categorizing text data and images using LLMs and vision models
|
|
5
5
|
Project-URL: Documentation, https://github.com/chrissoria/cat-llm#readme
|
|
6
6
|
Project-URL: Issues, https://github.com/chrissoria/cat-llm/issues
|
|
@@ -72,7 +72,7 @@ def image_multi_class(
|
|
|
72
72
|
|
|
73
73
|
# Handle extension safely
|
|
74
74
|
ext = Path(img_path).suffix.lstrip(".").lower()
|
|
75
|
-
if model_source == "OpenAI":
|
|
75
|
+
if model_source == "OpenAI" or model_source == "Mistral":
|
|
76
76
|
encoded_image = f"data:image/{ext};base64,{encoded}"
|
|
77
77
|
prompt = [
|
|
78
78
|
{
|
|
@@ -309,7 +309,7 @@ def image_score(
|
|
|
309
309
|
ext = Path(img_path).suffix.lstrip(".").lower()
|
|
310
310
|
encoded_image = f"data:image/{ext};base64,{encoded}"
|
|
311
311
|
|
|
312
|
-
if model_source == "OpenAI":
|
|
312
|
+
if model_source == "OpenAI" or model_source == "Mistral":
|
|
313
313
|
prompt = [
|
|
314
314
|
{
|
|
315
315
|
"type": "text",
|
|
@@ -575,7 +575,7 @@ def image_features(
|
|
|
575
575
|
ext = Path(img_path).suffix.lstrip(".").lower()
|
|
576
576
|
encoded_image = f"data:image/{ext};base64,{encoded}"
|
|
577
577
|
|
|
578
|
-
if model_source == "OpenAI":
|
|
578
|
+
if model_source == "OpenAI" or model_source == "Mistral":
|
|
579
579
|
prompt = [
|
|
580
580
|
{
|
|
581
581
|
"type": "text",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|