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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cat-llm
3
- Version: 0.0.31
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
@@ -1,7 +1,7 @@
1
1
  # SPDX-FileCopyrightText: 2025-present Christopher Soria <chrissoria@berkeley.edu>
2
2
  #
3
3
  # SPDX-License-Identifier: MIT
4
- __version__ = "0.0.31"
4
+ __version__ = "0.0.32"
5
5
  __author__ = "Chris Soria"
6
6
  __email__ = "chrissoria@berkeley.edu"
7
7
  __title__ = "cat-llm"
@@ -11,6 +11,6 @@ from .__about__ import (
11
11
  __license__,
12
12
  )
13
13
 
14
- from .cat_llm import *
14
+ from .text_functions import *
15
15
  from .CERAD_functions import *
16
16
  from .image_functions import *
@@ -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