inferencesh 0.2.5__py3-none-any.whl → 0.2.6__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.

Potentially problematic release.


This version of inferencesh might be problematic. Click here for more details.

inferencesh/sdk.py CHANGED
@@ -345,6 +345,16 @@ class LLMInput(BaseAppInput):
345
345
  )
346
346
 
347
347
  class LLMInputWithImage(LLMInput):
348
+ context: list[ContextMessageWithImage] = Field(
349
+ description="The context to use for the model",
350
+ examples=[
351
+ [
352
+ {"role": "user", "content": [{"type": "text", "text": "What is the capital of France?"}, {"type": "image", "url": "https://example.com/image.jpg"}]},
353
+ {"role": "assistant", "content": [{"type": "text", "text": "The capital of France is Paris."}]}
354
+ ],
355
+ ],
356
+ default=[]
357
+ )
348
358
  image: Optional[File] = Field(
349
359
  description="The image to use for the model",
350
360
  default=None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: inferencesh
3
- Version: 0.2.5
3
+ Version: 0.2.6
4
4
  Summary: inference.sh Python SDK
5
5
  Author: Inference Shell Inc.
6
6
  Author-email: "Inference Shell Inc." <hello@inference.sh>
@@ -0,0 +1,8 @@
1
+ inferencesh/__init__.py,sha256=hbKkgHCh0lCdhWyHs3FHHRd8JfLeHkTd1bT4v79Fi8M,192
2
+ inferencesh/sdk.py,sha256=h0yjWNvWg3ArcCOXCscnS1R4Mfj36m-wO507xZVj9Tg,16673
3
+ inferencesh-0.2.6.dist-info/licenses/LICENSE,sha256=OsgqEWIh2el_QMj0y8O1A5Q5Dl-dxqqYbFE6fszuR4s,1086
4
+ inferencesh-0.2.6.dist-info/METADATA,sha256=UGNUS69pDr-Dyz6NxgP9ljJDVAter6ujOHN0yUb-FvQ,2756
5
+ inferencesh-0.2.6.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
6
+ inferencesh-0.2.6.dist-info/entry_points.txt,sha256=6IC-fyozAqW3ljsMLGCXxJ0_ui2Jb-2fLHtoH1RTnEE,45
7
+ inferencesh-0.2.6.dist-info/top_level.txt,sha256=TSMHg3T1ThMl1HGAWmzBClwOYH1ump5neof9BfHIwaA,12
8
+ inferencesh-0.2.6.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- inferencesh/__init__.py,sha256=hbKkgHCh0lCdhWyHs3FHHRd8JfLeHkTd1bT4v79Fi8M,192
2
- inferencesh/sdk.py,sha256=f_M4_-sKqYIg1kFiBjlI9-1nPNIw6DgLOdRo_9HaOzU,16202
3
- inferencesh-0.2.5.dist-info/licenses/LICENSE,sha256=OsgqEWIh2el_QMj0y8O1A5Q5Dl-dxqqYbFE6fszuR4s,1086
4
- inferencesh-0.2.5.dist-info/METADATA,sha256=65IzfW7RGpTXrJevMcZo0w5xXnb9eYK4xEkd2uV3Yms,2756
5
- inferencesh-0.2.5.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
6
- inferencesh-0.2.5.dist-info/entry_points.txt,sha256=6IC-fyozAqW3ljsMLGCXxJ0_ui2Jb-2fLHtoH1RTnEE,45
7
- inferencesh-0.2.5.dist-info/top_level.txt,sha256=TSMHg3T1ThMl1HGAWmzBClwOYH1ump5neof9BfHIwaA,12
8
- inferencesh-0.2.5.dist-info/RECORD,,