Skip to content

Commit

Permalink
Update members.py (#142)
Browse files Browse the repository at this point in the history
fix final_answer_model to use the model configuration provided by user to resolve issues with configuration inconsistency between members & final model

Signed-off-by: Arun Cherla <[email protected]>
  • Loading branch information
acherla authored Sep 13, 2024
1 parent 20d869c commit b2a46db
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions backend/app/core/graph/members.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,7 @@ def __init__(
self.model = init_chat_model(
model, model_provider=provider, temperature=0, streaming=True
)
self.final_answer_model = init_chat_model(
model, model_provider=provider, temperature=0, streaming=True
)
self.final_answer_model = self.model

def tag_with_name(self, ai_message: AIMessage, name: str) -> AIMessage:
"""Tag a name to the AI message"""
Expand Down

0 comments on commit b2a46db

Please sign in to comment.