Skip to content

Commit

Permalink
Merge branch 'staging' into message-hotfix-pr-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
VVoruganti authored Dec 20, 2023
2 parents 479f1ba + bbc6370 commit 2e32763
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions agent/chain.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ def think(cls, cache: Conversation, input: str):
chain = thought_prompt | cls.llm

def save_new_messages(ai_response):
cache.add_message("response", HumanMessage(content=input))
cache.add_message("response", AIMessage(content=ai_response))
cache.add_message("thought", HumanMessage(content=input))
cache.add_message("thought", AIMessage(content=ai_response))

return Streamable(chain.astream({}, {"tags": ["thought"], "metadata": {"conversation_id": cache.conversation_id, "user_id": cache.user_id}}), save_new_messages)

Expand Down
2 changes: 1 addition & 1 deletion www/next.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
// output: "standalone",
output: "standalone",
// rewrites: async () => {
// return [
// {
Expand Down

0 comments on commit 2e32763

Please sign in to comment.