Skip to content

Commit

Permalink
v2.1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
ashpreetbedi committed Jan 10, 2024
1 parent e488d1e commit 4bbcf57
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions api/routes/pdf_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def create_conversation(body: CreateConversationRequest):


def chat_response_streamer(conversation: Conversation, message: str) -> Generator:
for chunk in conversation.chat(message):
for chunk in conversation.run(message):
yield chunk


Expand All @@ -104,7 +104,7 @@ def chat(body: ChatRequest):
media_type="text/event-stream",
)
else:
return conversation.chat(body.message, stream=False)
return conversation.run(body.message, stream=False)


class ChatHistoryRequest(BaseModel):
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ dependencies = [
# Linting and Formatting
"ruff",
# Phidata
"phidata==2.1.3",
"phidata==2.1.6",
]

[build-system]
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ numpy==1.26.2
openai==1.3.5
packaging==23.2
pgvector==0.2.3
phidata==2.1.3
phidata==2.1.6
pluggy==1.3.0
psycopg[binary]==3.1.13
psycopg-binary==3.1.13
Expand Down

0 comments on commit 4bbcf57

Please sign in to comment.