Skip to content

Commit f194073

Browse files
chore: remove unused custom_display_fn from agent.py
- Removed unused custom_display_fn function that was defined but never called - Cleanup after streaming fix to avoid confusion - No functional changes, streaming fix remains intact Co-authored-by: Mervin Praison <MervinPraison@users.noreply.github.com>
1 parent b617367 commit f194073

File tree

1 file changed

+0
-5
lines changed
  • src/praisonai-agents/praisonaiagents/agent

1 file changed

+0
-5
lines changed

src/praisonai-agents/praisonaiagents/agent/agent.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1128,11 +1128,6 @@ def _chat_completion(self, messages, temperature=0.2, tools=None, stream=True, r
11281128
)
11291129
else:
11301130
# Use the standard OpenAI client approach with tool support
1131-
def custom_display_fn(text, start_time):
1132-
if self.verbose:
1133-
return display_generating(text, start_time)
1134-
return ""
1135-
11361131
# Note: openai_client expects tools in various formats and will format them internally
11371132
# But since we already have formatted_tools, we can pass them directly
11381133
if self._openai_client is None:

0 commit comments

Comments
 (0)