mirror of
https://github.com/open-webui/pipelines
synced 2025-06-04 03:47:04 +00:00
fix
This commit is contained in:
parent
ef79179c7f
commit
086acb5c29
@ -38,7 +38,6 @@ class Pipeline:
|
|||||||
|
|
||||||
async def outlet(self, body: dict, user: dict) -> dict:
|
async def outlet(self, body: dict, user: dict) -> dict:
|
||||||
# This function is called after the OpenAI API response is completed. You can modify the messages after they are received from the OpenAI API.
|
# This function is called after the OpenAI API response is completed. You can modify the messages after they are received from the OpenAI API.
|
||||||
|
|
||||||
print(f"outlet:{__name__}")
|
print(f"outlet:{__name__}")
|
||||||
|
|
||||||
print(body)
|
print(body)
|
||||||
|
@ -113,5 +113,5 @@ class Pipeline:
|
|||||||
if self.rate_limited(user_id):
|
if self.rate_limited(user_id):
|
||||||
raise Exception("Rate limit exceeded. Please try again later.")
|
raise Exception("Rate limit exceeded. Please try again later.")
|
||||||
|
|
||||||
self.log_request(user_id)
|
self.log_request(user_id)
|
||||||
return body
|
return body
|
||||||
|
Loading…
Reference in New Issue
Block a user