mirror of
https://github.com/open-webui/pipelines
synced 2025-05-10 23:50:45 +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.
|
# This is where you can add your custom pipelines like RAG.
|
||||||
print(f"pipe:{__name__}")
|
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(messages)
|
||||||
print(user_message)
|
print(user_message)
|
||||||
print(body)
|
print(body)
|
||||||
|
@ -58,6 +58,10 @@ class Pipeline:
|
|||||||
# This filter is applied to the form data before it is sent to the OpenAI API.
|
# This filter is applied to the form data before it is sent to the OpenAI API.
|
||||||
print(f"inlet:{__name__}")
|
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(body)
|
||||||
print(user)
|
print(user)
|
||||||
|
|
||||||
|
@ -48,6 +48,10 @@ class Pipeline:
|
|||||||
# This is where you can add your custom pipelines like RAG.
|
# This is where you can add your custom pipelines like RAG.
|
||||||
print(f"pipe:{__name__}")
|
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(messages)
|
||||||
print(user_message)
|
print(user_message)
|
||||||
print(body)
|
print(body)
|
||||||
|
Loading…
Reference in New Issue
Block a user