From ac78fd529f4e5788e0064bb5d83bd4cf9351b7d8 Mon Sep 17 00:00:00 2001 From: sunshinexcode <24xinhui@163.com> Date: Wed, 28 Aug 2024 21:33:17 +0800 Subject: [PATCH 1/3] chore(): modify openai model, gpt-3.5-turbo -> gpt-4o-mini --- agents/property.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/agents/property.json b/agents/property.json index 941c8cea..7e461ee3 100644 --- a/agents/property.json +++ b/agents/property.json @@ -43,7 +43,7 @@ "base_url": "", "api_key": "$OPENAI_API_KEY", "frequency_penalty": 0.9, - "model": "gpt-3.5-turbo", + "model": "gpt-4o-mini", "max_tokens": 512, "prompt": "", "proxy_url": "$OPENAI_PROXY_URL", @@ -242,7 +242,7 @@ "base_url": "", "api_key": "$OPENAI_API_KEY", "frequency_penalty": 0.9, - "model": "gpt-3.5-turbo", + "model": "gpt-4o-mini", "max_tokens": 512, "prompt": "", "proxy_url": "$OPENAI_PROXY_URL", @@ -605,7 +605,7 @@ "base_url": "", "api_key": "$OPENAI_API_KEY", "frequency_penalty": 0.9, - "model": "gpt-3.5-turbo", + "model": "gpt-4o-mini", "max_tokens": 512, "prompt": "", "proxy_url": "$OPENAI_PROXY_URL", From 83f524bb33e64ab810be45bc792901bd51652c9e Mon Sep 17 00:00:00 2001 From: sunshinexcode <24xinhui@163.com> Date: Wed, 28 Aug 2024 21:34:11 +0800 Subject: [PATCH 2/3] chore(): remove unused property --- server/internal/http_server.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/server/internal/http_server.go b/server/internal/http_server.go index a7133ec2..4ba9a660 100644 --- a/server/internal/http_server.go +++ b/server/internal/http_server.go @@ -38,8 +38,6 @@ type HttpServerConfig struct { Log2Stdout bool PropertyJsonFile string Port string - TTSVendorChinese string - TTSVendorEnglish string WorkersMax int WorkerQuitTimeoutSeconds int } From bfd8304b8adae8e97ce48046e614c1fd7321b4a0 Mon Sep 17 00:00:00 2001 From: sunshinexcode <24xinhui@163.com> Date: Wed, 28 Aug 2024 21:48:19 +0800 Subject: [PATCH 3/3] chore(): copy src directory --- agents/scripts/package.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/agents/scripts/package.sh b/agents/scripts/package.sh index 73f8e065..7a94b3d1 100755 --- a/agents/scripts/package.sh +++ b/agents/scripts/package.sh @@ -31,7 +31,6 @@ copy_package() { cp ten_packages/${package_type}/${package_name}/property.json .release/ten_packages/${package_type}/${package_name}/ fi - # package .py for python extensions # TODO: package 'publish' contents only cp ten_packages/${package_type}/${package_name}/*.py .release/ten_packages/${package_type}/${package_name}/ | true @@ -43,6 +42,9 @@ copy_package() { if [[ -d ten_packages/${package_type}/${package_name}/pb ]]; then cp -r ten_packages/${package_type}/${package_name}/pb .release/ten_packages/${package_type}/${package_name}/ fi + if [[ -d ten_packages/${package_type}/${package_name}/src ]]; then + cp -r ten_packages/${package_type}/${package_name}/src .release/ten_packages/${package_type}/${package_name}/ + fi } cp -r bin .release @@ -51,7 +53,7 @@ cp property.json .release # copy packages mkdir -p .release/ten_packages -for package_type in system extension_group extension ; do +for package_type in system extension_group extension; do for package_path in ten_packages/${package_type}/*; do package_name=$(basename ${package_path}) copy_package ${package_type} ${package_name}