inferencesh 0.2.5__tar.gz → 0.2.7__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.
Potentially problematic release.
This version of inferencesh might be problematic. Click here for more details.
- {inferencesh-0.2.5/src/inferencesh.egg-info → inferencesh-0.2.7}/PKG-INFO +1 -1
- {inferencesh-0.2.5 → inferencesh-0.2.7}/pyproject.toml +1 -1
- {inferencesh-0.2.5 → inferencesh-0.2.7}/src/inferencesh/sdk.py +11 -1
- {inferencesh-0.2.5 → inferencesh-0.2.7/src/inferencesh.egg-info}/PKG-INFO +1 -1
- {inferencesh-0.2.5 → inferencesh-0.2.7}/LICENSE +0 -0
- {inferencesh-0.2.5 → inferencesh-0.2.7}/README.md +0 -0
- {inferencesh-0.2.5 → inferencesh-0.2.7}/setup.cfg +0 -0
- {inferencesh-0.2.5 → inferencesh-0.2.7}/setup.py +0 -0
- {inferencesh-0.2.5 → inferencesh-0.2.7}/src/inferencesh/__init__.py +0 -0
- {inferencesh-0.2.5 → inferencesh-0.2.7}/src/inferencesh.egg-info/SOURCES.txt +0 -0
- {inferencesh-0.2.5 → inferencesh-0.2.7}/src/inferencesh.egg-info/dependency_links.txt +0 -0
- {inferencesh-0.2.5 → inferencesh-0.2.7}/src/inferencesh.egg-info/entry_points.txt +0 -0
- {inferencesh-0.2.5 → inferencesh-0.2.7}/src/inferencesh.egg-info/requires.txt +0 -0
- {inferencesh-0.2.5 → inferencesh-0.2.7}/src/inferencesh.egg-info/top_level.txt +0 -0
- {inferencesh-0.2.5 → inferencesh-0.2.7}/tests/test_sdk.py +0 -0
|
@@ -267,7 +267,7 @@ class File(BaseModel):
|
|
|
267
267
|
@classmethod
|
|
268
268
|
def model_json_schema(cls, **kwargs):
|
|
269
269
|
schema = super().model_json_schema(**kwargs)
|
|
270
|
-
|
|
270
|
+
schema["$id"] = "/schemas/File"
|
|
271
271
|
# Create a schema that accepts either a string or the full object
|
|
272
272
|
return {
|
|
273
273
|
"oneOf": [
|
|
@@ -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
|
|
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
|
|
File without changes
|