mirror of
https://github.com/langchain-ai/streamlit-agent.git
synced 2026-08-27 12:25:13 -04:00
[PR #51] [MERGED] Update SQL agents to use read-only connections #53
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/langchain-ai/streamlit-agent/pull/51
Author: @sfc-gh-jcarroll
Created: 2/7/2024
Status: ✅ Merged
Merged: 2/8/2024
Merged by: @sfc-gh-jcarroll
Base:
main← Head:sql-readonly📝 Commits (1)
4592dddUpdate SQL agents to use read-only connections📊 Changes
2 files changed (+24 additions, -3 deletions)
View changed files
📝
streamlit_agent/chat_with_sql_db.py(+16 -2)📝
streamlit_agent/mrkl_demo.py(+8 -1)📄 Description
I tested and confirmed on both apps, if the LLM generates a write instruction (like
DROP TABLE) it now throws an error instead of successfully executing the query.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.