Skip to content

Commit

Permalink
Accept get methods in DocumentStoreServer (#7295)
Browse files Browse the repository at this point in the history
GitOrigin-RevId: bd6231e1bbe3bdb2d9214fa763dfbdf708788c09
  • Loading branch information
szymondudycz authored and Manul from Pathway committed Sep 10, 2024
1 parent 93ecfb1 commit ff0ad37
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/pathway/xpacks/llm/servers.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ def __init__(
port: int,
**rest_kwargs,
):
self.webserver = pw.io.http.PathwayWebserver(
host=host, port=port, **rest_kwargs
)
self.webserver = pw.io.http.PathwayWebserver(host=host, port=port)

def serve(
self,
Expand Down Expand Up @@ -104,6 +102,8 @@ def __init__(
):
super().__init__(host, port, **rest_kwargs)

rest_kwargs = {"methods": ("GET", "POST"), **rest_kwargs}

self.serve(
"/v1/retrieve",
doc_store.RetrieveQuerySchema,
Expand Down

0 comments on commit ff0ad37

Please sign in to comment.