8000 Hotfix/1.0.1 by zgqgit · Pull Request #1174 · dataelement/bisheng · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Hotfix/1.0.1 #1174

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ services:

backend:
container_name: bisheng-backend
image: dataelement/bisheng-backend:v1.0.0
image: dataelement/bisheng-backend:v1.0.1
ports:
- "7860:7860"
environment:
Expand Down Expand Up @@ -94,7 +94,7 @@ services:

frontend:
container_name: bisheng-frontend
image: dataelement/bisheng-frontend:v1.0.0
image: dataelement/bisheng-frontend:v1.0.1
ports:
- "3001:3001"
environment:
Expand Down
2 changes: 1 addition & 1 deletion src/backend/bisheng/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

try:
# 通过ci去自动修改
__version__ = '1.0.0'
__version__ = '1.0.1'
except metadata.PackageNotFoundError:
# Case where package metadata is not available.
__version__ = ''
Expand Down
67 changes: 26 additions & 41 deletions src/backend/bisheng/database/data/t_gpts_tools.json

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions src/backend/bisheng/database/init_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ def init_default_data():
preset_tools = []
json_items = json.loads(read_from_conf('data/t_gpts_tools.json'))
for item in json_items:
item['api_params'] = json.loads(item['api_params'])
preset_tool = GptsTools(**item)
preset_tools.append(preset_tool)
session.add_all(preset_tools)
Expand Down Expand Up @@ -153,7 +152,7 @@ def init_default_data():
# if the exception involves tables already existing
# we can ignore it
if 'already exists' not in str(exc):
logger.error(f'Error creating DB and tables: {exc}')
logger.exception(f'Error creating DB and tables: {exc}')
raise RuntimeError('Error creating DB and tables') from exc
finally:
redis_client.delete('init_default_data')
Expand Down
4 changes: 2 additions & 2 deletions src/backend/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "bisheng"
version = "1.0.0"
version = "1.0.1"
description = "A Python package with a built-in web application"
authors = ["Dataelement <hanfeng@dataelem.com>"]
maintainers = [
Expand All @@ -18,7 +18,7 @@ include = ["./bisheng/*", "bisheng/**/*"]
bisheng = "bisheng.__main__:main"

[tool.poetry.dependencies]
bisheng_langchain = "1.0.0"
bisheng_langchain = "1.0.1"
bisheng_pyautogen = "0.3.2"
langchain = "^0.2.16"
langchain_experimental = "*"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def _run(
class BingSearchResults(BaseTool):
"""Tool that queries the Bing Search API and gets back json."""

name: str = "bing_search_results_json"
name: str = "bing_search"
description: str = (
"A wrapper around Bing Search. "
"Useful for when you need to answer questions about current events. "
Expand Down
8 changes: 4 additions & 4 deletions src/frontend/src/pages/BuildPage/flow/FlowChat/ChatPane.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import Chat from "./Chat";
import { useMessageStore } from "./messageStore";

export default function ChatPane({ autoRun = false, chatId, flow, wsUrl = '' }: { autoRun?: boolean, chatId: string, flow: any, wsUrl?: string }) {
// const { changeChatId } = useMessageStore()
const { changeChatId } = useMessageStore()

// useEffect(() => {
// changeChatId(chatId)
// }, [chatId])
useEffect(() => {
changeChatId(chatId)
}, [chatId])

const getMessage = (action, { nodeId, msg, category, extra, source, message_id }) => {
if (action === 'getInputForm') {
Expand Down
4 changes: 2 additions & 2 deletions update.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#! /bin/bash

old_version="0.4.1.2"
new_version="1.0.0"
old_version="1.0.0"
new_version="1.0.1"
sed -i "s/$old_version/$new_version/g" ./docker/docker-compose.yml
sed -i "s/$old_version/$new_version/g" ./src/backend/pyproject.toml
sed -i "s/$old_version/$new_version/g" ./src/backend/bisheng/__init__.py
0