Skip to content

Commit 7fc2601

Browse files
authored
bugfix/don't inclue message channels in input schema (#45)
1 parent 90349ac commit 7fc2601

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.0.25
2+
3+
* **Remove message channels from input signature**
4+
15
## 0.0.24
26

37
* **Add support for passing messages back other than errors**
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.0.24" # pragma: no cover
1+
__version__ = "0.0.25" # pragma: no cover

unstructured_platform_plugins/etl_uvicorn/api_generator.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ class InvokeResponse(BaseModel):
142142
output: Optional[response_type] = None
143143
message_channels: MessageChannels = Field(default_factory=MessageChannels)
144144

145-
input_schema = get_input_schema(func, omit=["usage", "filedata_meta"])
145+
input_schema = get_input_schema(func, omit=["usage", "filedata_meta", "message_channels"])
146146
input_schema_model = schema_to_base_model(input_schema)
147147

148148
logging.getLogger("etl_uvicorn.fastapi")

0 commit comments

Comments
 (0)