Skip to content

Commit

Permalink
minor changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Qewertyy committed Mar 3, 2024
1 parent 94b86ae commit 6e1d7ac
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lexica/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
"languageModels"
]

__version__ = "1.5.5"
__version__ = "1.5.6"
__author__ = "Qewertyy <[email protected]>"
4 changes: 2 additions & 2 deletions lexica/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def ChatCompletion(self : "Client", prompt: str,model : dict = languageModels.pa
)
return resp

def upscale(self : "Client", image: bytes) -> bytes:
def upscale(self : "Client", image: bytes, extras:dict=None) -> bytes:
"""
Upscale an image
Example:
Expand All @@ -103,7 +103,7 @@ def upscale(self : "Client", image: bytes) -> bytes:
content = self._request(
url=f'{self.url}/upscale',
method = 'POST',
json={'image_data': b}
json={'image_data': b,**(extras or {})}
)
return content

Expand Down
4 changes: 2 additions & 2 deletions lexica/core_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ async def ChatCompletion(self : "AsyncClient", prompt: str,model : dict = langua
)
return resp

async def upscale(self : "AsyncClient", image: bytes) -> bytes:
async def upscale(self : "AsyncClient", image: bytes, extras:dict=None) -> bytes:
"""
Upscale an image
Example:
Expand All @@ -113,7 +113,7 @@ async def upscale(self : "AsyncClient", image: bytes) -> bytes:
content = await self._request(
url=f'{self.url}/upscale',
method='POST',
json={'image_data': b}
json={'image_data': b, **(extras or {})},
)
return content

Expand Down

0 comments on commit 6e1d7ac

Please sign in to comment.