Skip to content

Fix: remove noisy debug print in OpenAI Responses model init#438

Open
segunakinfenwa-sketch wants to merge 1 commit intoaliasrobotics:mainfrom
segunakinfenwa-sketch:fix/remove-responses-debug-print
Open

Fix: remove noisy debug print in OpenAI Responses model init#438
segunakinfenwa-sketch wants to merge 1 commit intoaliasrobotics:mainfrom
segunakinfenwa-sketch:fix/remove-responses-debug-print

Conversation

@segunakinfenwa-sketch
Copy link
Copy Markdown

Description

Summary

This PR removes an always-on print() statement from OpenAIResponsesModel.init that was polluting CLI output during normal runs.

Changes

  • Replaced unconditional print() with logger.debug(...) so the message is only emitted when debug logging is enabled.

Why

  • Prevents unwanted stdout noise for users running the CLI.
  • Aligns with the project’s logging practices (debug output should be controlled via logging configuration/env).

Files changed

  • src/cai/sdk/agents/models/openai_responses.py

Testing

  • Ran the targeted test:
    • tests/tracing/test_responses_tracing.py
      Feedback submitted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant