Skip to content

Commit 3cee9bc

Browse files
committed
refactor: 修改依赖包的方法
1 parent 251e464 commit 3cee9bc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

apps/setting/models_provider/impl/xf_model_provider/model/llm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from typing import List, Optional, Any, Iterator, Dict
1010

1111
from langchain_community.chat_models.sparkllm import \
12-
ChatSparkLLM, _convert_message_to_dict, _convert_delta_to_message_chunk
12+
ChatSparkLLM, convert_message_to_dict, _convert_delta_to_message_chunk
1313
from langchain_core.callbacks import CallbackManagerForLLMRun
1414
from langchain_core.messages import BaseMessage, AIMessageChunk
1515
from langchain_core.outputs import ChatGenerationChunk
@@ -56,7 +56,7 @@ def _stream(
5656
default_chunk_class = AIMessageChunk
5757

5858
self.client.arun(
59-
[_convert_message_to_dict(m) for m in messages],
59+
[convert_message_to_dict(m) for m in messages],
6060
self.spark_user_id,
6161
self.model_kwargs,
6262
True,

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ djangorestframework = "^3.15.2"
1212
drf-yasg = "1.21.7"
1313
django-filter = "23.2"
1414
langchain = "0.2.16"
15-
langchain_community = "0.2.4"
15+
langchain_community = "0.2.17"
1616
langchain-huggingface = "^0.0.3"
1717
psycopg2-binary = "2.9.7"
1818
jieba = "^0.42.1"

0 commit comments

Comments
 (0)