mirror of
https://github.com/open-webui/pipelines
synced 2025-06-26 18:15:58 +00:00
fix
This commit is contained in:
parent
8c3f262ffd
commit
23ce9d396b
9
main.py
9
main.py
@ -156,10 +156,13 @@ async def generate_openai_chat_completion(form_data: OpenAIChatCompletionForm):
|
|||||||
pipeline = app.state.PIPELINES[form_data.model]
|
pipeline = app.state.PIPELINES[form_data.model]
|
||||||
pipeline_id = form_data.model
|
pipeline_id = form_data.model
|
||||||
|
|
||||||
if pipeline.get("manifold", False):
|
print(pipeline_id)
|
||||||
pipeline_id = pipeline_id.split(".")[1]
|
|
||||||
|
|
||||||
get_response = pipeline["module"].get_response
|
if pipeline.get("manifold", False):
|
||||||
|
manifold_id, pipeline_id = pipeline_id.split(".", 1)
|
||||||
|
get_response = PIPELINE_MODULES[manifold_id].get_response
|
||||||
|
else:
|
||||||
|
get_response = PIPELINE_MODULES[pipeline_id].get_response
|
||||||
|
|
||||||
if form_data.stream:
|
if form_data.stream:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user