llmir 0.0.13__tar.gz → 0.0.14__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: llmir
3
- Version: 0.0.13
3
+ Version: 0.0.14
4
4
  Summary: Core message and tool IR for LLM pipelines
5
5
  Author: Mathis Siebert
6
6
  Requires-Python: >=3.11
@@ -155,7 +155,11 @@ def content_chunk_to_openai(chunk: AIChunkText | AIChunkFile | AIChunkImageURL)
155
155
  text=text
156
156
  )
157
157
  else:
158
- raise ValueError(f"Unsupported file type for OpenAI: {chunk.mimetype}")
158
+ return OpenAIText( # Fallback: represent as text
159
+ type="text",
160
+ text=f"[Unsupported file type: {chunk.mimetype}, size: {len(chunk.bytes)} bytes, name: {chunk.name}]"
161
+ )
162
+ # raise ValueError(f"Unsupported file type for OpenAI: {chunk.mimetype}")
159
163
  case _:
160
164
  raise ValueError(f"Unsupported chunk type: {type(chunk)}")
161
165
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: llmir
3
- Version: 0.0.13
3
+ Version: 0.0.14
4
4
  Summary: Core message and tool IR for LLM pipelines
5
5
  Author: Mathis Siebert
6
6
  Requires-Python: >=3.11
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "llmir"
3
- version = "0.0.13"
3
+ version = "0.0.14"
4
4
  description = "Core message and tool IR for LLM pipelines"
5
5
  authors = [{ name="Mathis Siebert" }]
6
6
  requires-python = ">=3.11"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes