Skip to content

Commit

Permalink
remove bad ref
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-XT committed Jan 9, 2025
1 parent 7492dd0 commit 0d93b63
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions agixt/endpoints/GQL.py
Original file line number Diff line number Diff line change
Expand Up @@ -2445,11 +2445,9 @@ async def create_conversation(
user, auth = await get_user_from_context(info)
model = ConversationHistoryModel(**input.__dict__)
c = Conversations(user=user)
result = {
"conversation_history": c.new_conversation(
conversation_content=model.conversation_content,
)
}
result = c.new_conversation(
conversation_content=model.conversation_content,
)

messages = [
ConversationMessage(
Expand All @@ -2461,7 +2459,7 @@ async def create_conversation(
updated_by=msg["updated_by"],
feedback_received=msg["feedback_received"],
)
for msg in result.conversation_history
for msg in result
]

return ConversationHistory(messages=messages)
Expand Down

0 comments on commit 0d93b63

Please sign in to comment.