Browse Source

feat:Add support for stop parameter in hunyuan model #12313 (#12315)

Co-authored-by: xander-art <xander-art@gmail.com>
xander-art 3 months ago
parent
commit
baeddd4d15
3 changed files with 386 additions and 443 deletions
  1. 1 0
      api/core/model_runtime/model_providers/hunyuan/llm/llm.py
  2. 384 442
      api/poetry.lock
  3. 1 1
      api/pyproject.toml

+ 1 - 0
api/core/model_runtime/model_providers/hunyuan/llm/llm.py

@@ -54,6 +54,7 @@ class HunyuanLargeLanguageModel(LargeLanguageModel):
             "Model": model,
             "Messages": messages_dict,
             "Stream": stream,
+            "Stop": stop,
             **custom_parameters,
         }
         # add Tools and ToolChoice

File diff suppressed because it is too large
+ 384 - 442
api/poetry.lock


+ 1 - 1
api/pyproject.toml

@@ -82,7 +82,7 @@ scikit-learn = "~1.5.1"
 sentry-sdk = { version = "~1.44.1", extras = ["flask"] }
 sqlalchemy = "~2.0.29"
 starlette = "0.41.0"
-tencentcloud-sdk-python-hunyuan = "~3.0.1158"
+tencentcloud-sdk-python-hunyuan = "~3.0.1294"
 tiktoken = "~0.8.0"
 tokenizers = "~0.15.0"
 transformers = "~4.35.0"

Some files were not shown because too many files changed in this diff