mirror of
https://github.com/open-webui/pipelines
synced 2025-05-10 15:40:55 +00:00
enh: scaffolds
This commit is contained in:
parent
73c340f4eb
commit
c19f52bd7b
@ -56,6 +56,10 @@ class Pipeline:
|
||||
# This is where you can add your custom pipelines like RAG.
|
||||
print(f"pipe:{__name__}")
|
||||
|
||||
# If you'd like to check for title generation, you can add the following check
|
||||
if body.get("title", False):
|
||||
print("Title Generation Request")
|
||||
|
||||
print(messages)
|
||||
print(user_message)
|
||||
print(body)
|
||||
|
@ -58,6 +58,10 @@ class Pipeline:
|
||||
# This filter is applied to the form data before it is sent to the OpenAI API.
|
||||
print(f"inlet:{__name__}")
|
||||
|
||||
# If you'd like to check for title generation, you can add the following check
|
||||
if body.get("title", False):
|
||||
print("Title Generation Request")
|
||||
|
||||
print(body)
|
||||
print(user)
|
||||
|
||||
|
@ -48,6 +48,10 @@ class Pipeline:
|
||||
# This is where you can add your custom pipelines like RAG.
|
||||
print(f"pipe:{__name__}")
|
||||
|
||||
# If you'd like to check for title generation, you can add the following check
|
||||
if body.get("title", False):
|
||||
print("Title Generation Request")
|
||||
|
||||
print(messages)
|
||||
print(user_message)
|
||||
print(body)
|
||||
|
Loading…
Reference in New Issue
Block a user