From a1090a339b14ac1a18d74b7cb67de8424e2a0e57 Mon Sep 17 00:00:00 2001 From: sunshinexcode <24xinhui@163.com> Date: Thu, 29 Aug 2024 10:35:20 +0800 Subject: [PATCH] modify openai model, gpt-3.5-turbo -> gpt-4o-mini (#258) * chore(): modify openai model, gpt-3.5-turbo -> gpt-4o-mini * chore(): remove unused property * chore(): copy src directory --- agents/property.json | 6 +++--- agents/scripts/package.sh | 6 ++++-- server/internal/http_server.go | 2 -- 3 files changed, 7 insertions(+), 7 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", 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} 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 }