Skip to content

Commit c3d5ab1

Browse files
committed
sanitize payloads
1 parent 1e18b25 commit c3d5ab1

6 files changed

Lines changed: 6 additions & 12 deletions

File tree

  • agents
    • crewai/websearch_agent/playground
    • langgraph
      • agentic_rag/playground
      • react_agent/playground
      • react_with_database_memory/playground
    • llamaindex/websearch_agent/playground
    • vanilla_python/openai_responses_agent/playground

agents/crewai/websearch_agent/playground/app.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,7 @@ def chat():
8181
"stream": True,
8282
}
8383

84-
logger.info(f"Sending request to {AGENT_URL}/chat/completions")
85-
logger.info(f"Payload: {json.dumps(payload)}")
84+
logger.info(f"Sending request to {AGENT_URL}/chat/completions (messages={len(payload.get('messages', []))}, stream={payload.get('stream')})")
8685

8786
def generate():
8887
try:

agents/langgraph/agentic_rag/playground/app.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,7 @@ def chat():
8181
"stream": True,
8282
}
8383

84-
logger.info(f"Sending request to {AGENT_URL}/chat/completions")
85-
logger.info(f"Payload: {json.dumps(payload)}")
84+
logger.info(f"Sending request to {AGENT_URL}/chat/completions (messages={len(payload.get('messages', []))}, stream={payload.get('stream')})")
8685

8786
def generate():
8887
try:

agents/langgraph/react_agent/playground/app.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,7 @@ def chat():
8181
"stream": True,
8282
}
8383

84-
logger.info(f"Sending request to {AGENT_URL}/chat/completions")
85-
logger.info(f"Payload: {json.dumps(payload)}")
84+
logger.info(f"Sending request to {AGENT_URL}/chat/completions (messages={len(payload.get('messages', []))}, stream={payload.get('stream')})")
8685

8786
def generate():
8887
try:

agents/langgraph/react_with_database_memory/playground/app.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,7 @@ def chat():
8585
if thread_id:
8686
payload["thread_id"] = thread_id
8787

88-
logger.info(f"Sending request to {AGENT_URL}/chat/completions")
89-
logger.info(f"Payload: {json.dumps(payload)}")
88+
logger.info(f"Sending request to {AGENT_URL}/chat/completions (messages={len(payload.get('messages', []))}, stream={payload.get('stream')})")
9089

9190
def generate():
9291
try:

agents/llamaindex/websearch_agent/playground/app.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,7 @@ def chat():
8181
"stream": True,
8282
}
8383

84-
logger.info(f"Sending request to {AGENT_URL}/chat/completions")
85-
logger.info(f"Payload: {json.dumps(payload)}")
84+
logger.info(f"Sending request to {AGENT_URL}/chat/completions (messages={len(payload.get('messages', []))}, stream={payload.get('stream')})")
8685

8786
def generate():
8887
try:

agents/vanilla_python/openai_responses_agent/playground/app.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,7 @@ def chat():
8181
"stream": True,
8282
}
8383

84-
logger.info(f"Sending request to {AGENT_URL}/chat/completions")
85-
logger.info(f"Payload: {json.dumps(payload)}")
84+
logger.info(f"Sending request to {AGENT_URL}/chat/completions (messages={len(payload.get('messages', []))}, stream={payload.get('stream')})")
8685

8786
def generate():
8887
try:

0 commit comments

Comments
 (0)