Skip to content

Commit 8f5cd33

Browse files
fix openai tests hanging (#18605)
1 parent 4ccfe84 commit 8f5cd33

File tree

4 files changed

+2
-4
lines changed

4 files changed

+2
-4
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ credentials.json
2424
token.json
2525
.python-version
2626
.DS_Store
27-
/storage/
2827
*.sqlite3
2928
*.db
3029
llama-index-core/llama_index/core/_static

llama-index-core/.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
./storage/
21
.DS_Store
32
# Byte-compiled / optimized / DLL files
43
__pycache__/

llama-index-integrations/agent/llama-index-agent-openai/llama_index/agent/openai/step.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ def _should_continue(
552552
if n_function_calls > self._max_function_calls:
553553
return False
554554

555-
return tool_calls is not None
555+
return tool_calls is not None and len(tool_calls) > 0
556556

557557

558558
def get_tools(self, input: str) -> List[BaseTool]:

llama-index-integrations/agent/llama-index-agent-openai/pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ dev = [
2727

2828
[project]
2929
name = "llama-index-agent-openai"
30-
version = "0.4.6"
30+
version = "0.4.7"
3131
description = "llama-index agent openai integration"
3232
authors = [{name = "Your Name", email = "[email protected]"}]
3333
requires-python = ">=3.9,<4.0"

0 commit comments

Comments
 (0)