这是indexloc提供的服务,不要输入任何密码
Skip to content
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
6 changes: 5 additions & 1 deletion libs/superagent/app/agents/llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ def __init__(
NOT_TOOLS_STREAMING_SUPPORTED_PROVIDERS = [
LLMProvider.GROQ,
LLMProvider.BEDROCK,
LLMProvider.COHERE_CHAT,
]

intermediate_steps = []
Expand Down Expand Up @@ -236,7 +237,10 @@ async def _completion(self, **kwargs) -> Any:
await self.streaming_callback.on_llm_start()

# TODO: Remove this when Groq and Bedrock supports streaming with tools
if self.llm_data.llm.provider in self.NOT_TOOLS_STREAMING_SUPPORTED_PROVIDERS:
if (
self.llm_data.llm.provider in self.NOT_TOOLS_STREAMING_SUPPORTED_PROVIDERS
and len(self.tools) > 0
):
logger.info(
f"Disabling streaming for {self.llm_data.llm.provider}, as tools are used"
)
Expand Down
8 changes: 4 additions & 4 deletions libs/superagent/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion libs/superagent/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ openai = "^1.1.1"
langchain-experimental = "^0.0.37"
pydub = "^0.25.1"
algoliasearch = "^3.0.0"
litellm = "1.35.21"
litellm = "1.35.33"
weaviate-client = "^3.25.3"
qdrant-client = "^1.6.9"
vecs = "^0.4.2"
Expand Down