cat-llm 0.0.30__py3-none-any.whl → 0.0.31__py3-none-any.whl

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.30
3
+ Version: 0.0.31
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
@@ -0,0 +1,9 @@
1
+ catllm/CERAD_functions.py,sha256=fiSiBnCcFgNp5XmGhZULnToEoMyP5z6JMcH-aWC8q5o,18787
2
+ catllm/__about__.py,sha256=9jcX8w9s2lkH7rxfvscK-WEBKVFhqbPqque6B-Xa2QA,404
3
+ catllm/__init__.py,sha256=kLk180aJna1s-wU6CLr4_hKkbjoeET-11jGmC1pdhQw,330
4
+ catllm/cat_llm.py,sha256=TNsjYKpr8ZH9jeAYN-4DcFcrnR8x2eRl99oXzpdhE0Q,16910
5
+ catllm/image_functions.py,sha256=JLlv5qQhAQzgsRIY18rUPtM1P7x1Fw2UlWlI1dpv3dA,31272
6
+ cat_llm-0.0.31.dist-info/METADATA,sha256=5Gu7C5gBkMWYgVy8M4OSK6B8Zi2nT6HHiybtv4O_KqM,1679
7
+ cat_llm-0.0.31.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
8
+ cat_llm-0.0.31.dist-info/licenses/LICENSE,sha256=wJLsvOr6lrFUDcoPXExa01HOKFWrS3JC9f0RudRw8uw,1075
9
+ cat_llm-0.0.31.dist-info/RECORD,,
catllm/CERAD_functions.py CHANGED
@@ -151,7 +151,7 @@ def cerad_drawn_score(
151
151
  {
152
152
  "type": "image_url",
153
153
  "image_url": {"url": encoded_image, "detail": "high"},
154
- },
154
+ }
155
155
  ]
156
156
  elif model_source == "Anthropic":
157
157
  prompt = [
@@ -177,14 +177,14 @@ def cerad_drawn_score(
177
177
  "media_type": "image/jpeg",
178
178
  "data": encoded
179
179
  }
180
- },
180
+ }
181
181
  ]
182
182
 
183
183
  elif model_source == "Mistral":
184
184
  prompt = [
185
185
  {
186
- "role": "system",
187
- "content": (
186
+ "type": "text",
187
+ "text": (
188
188
  f"You are an image-tagging assistant trained in the CERAD Constructional Praxis test.\n"
189
189
  f"Task ► Examine the attached image and decide, **for each category below**, "
190
190
  f"whether it is PRESENT (1) or NOT PRESENT (0).\n\n"
@@ -199,7 +199,7 @@ def cerad_drawn_score(
199
199
  },
200
200
  {
201
201
  "type": "image_url",
202
- "image_url": f"data:image/jpeg;base64,{base64_image}"
202
+ "image_url": f"data:image/jpeg;base64,{encoded}"
203
203
  }
204
204
  ]
205
205
 
@@ -236,6 +236,7 @@ def cerad_drawn_score(
236
236
 
237
237
  elif model_source == "Mistral":
238
238
  from mistralai import Mistral
239
+ reply = None
239
240
  client = Mistral(api_key=api_key)
240
241
  try:
241
242
  response = client.chat.complete(
catllm/__about__.py CHANGED
@@ -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.30"
4
+ __version__ = "0.0.31"
5
5
  __author__ = "Chris Soria"
6
6
  __email__ = "chrissoria@berkeley.edu"
7
7
  __title__ = "cat-llm"
@@ -1,9 +0,0 @@
1
- catllm/CERAD_functions.py,sha256=OQOkCjC0J0ZiandP2J7YCx39KgdndJN3fAzq5XHYozs,18774
2
- catllm/__about__.py,sha256=YibkqP-aDZxbnylzJCTNLSTsAvGv9UhLUggZCWgK6kQ,404
3
- catllm/__init__.py,sha256=kLk180aJna1s-wU6CLr4_hKkbjoeET-11jGmC1pdhQw,330
4
- catllm/cat_llm.py,sha256=TNsjYKpr8ZH9jeAYN-4DcFcrnR8x2eRl99oXzpdhE0Q,16910
5
- catllm/image_functions.py,sha256=JLlv5qQhAQzgsRIY18rUPtM1P7x1Fw2UlWlI1dpv3dA,31272
6
- cat_llm-0.0.30.dist-info/METADATA,sha256=U0z9dm0ZCtDS5opnhns2irSQjQP00qlRqQEljPy_tG8,1679
7
- cat_llm-0.0.30.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
8
- cat_llm-0.0.30.dist-info/licenses/LICENSE,sha256=wJLsvOr6lrFUDcoPXExa01HOKFWrS3JC9f0RudRw8uw,1075
9
- cat_llm-0.0.30.dist-info/RECORD,,