mirror of
https://github.com/open-webui/pipelines
synced 2025-05-12 08:30:43 +00:00
14 lines
341 B
Python
14 lines
341 B
Python
from typing import List, Union, Generator
|
|
from schemas import OpenAIChatMessage
|
|
|
|
|
|
def get_response(
|
|
user_message: str, messages: List[OpenAIChatMessage]
|
|
) -> Union[str, Generator]:
|
|
# This is where you can add your custom pipelines like RAG.
|
|
|
|
print(messages)
|
|
print(user_message)
|
|
|
|
return f"rag response to: {user_message}"
|