Skip to content

Commit

Permalink
fcking black
Browse files Browse the repository at this point in the history
  • Loading branch information
bassner committed Nov 27, 2024
1 parent 57d0262 commit 75fbaf2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 6 additions & 1 deletion app/pipeline/chat/lecture_chat_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,12 @@ class LectureChatPipeline(Pipeline):
prompt: ChatPromptTemplate
callback: LectureChatCallback

def __init__(self, callback: LectureChatCallback, dto: LectureChatPipelineExecutionDTO, variant: str):
def __init__(
self,
callback: LectureChatCallback,
dto: LectureChatPipelineExecutionDTO,
variant: str,
):
super().__init__(implementation_id="lecture_chat_pipeline")
# Set the langchain chat model
request_handler = CapabilityRequestHandler(
Expand Down
4 changes: 3 additions & 1 deletion app/web/routers/pipelines.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,9 @@ def run_lecture_chat_pipeline_worker(dto, variant):
)
match variant:
case "default" | "lecture_chat_pipeline_reference_impl":
pipeline = LectureChatPipeline(callback=callback, dto=dto, variant=variant)
pipeline = LectureChatPipeline(
callback=callback, dto=dto, variant=variant
)
case _:
raise ValueError(f"Unknown variant: {variant}")
except Exception as e:
Expand Down

0 comments on commit 75fbaf2

Please sign in to comment.