MCPcopy
hub / github.com/openai/openai-python / accept_suggestion

Function accept_suggestion

src/openai/lib/_validators.py:566–571  ·  view source on GitHub ↗
(input_text: str, auto_accept: bool)

Source from the content-addressed store, hash-verified

564
565
566def accept_suggestion(input_text: str, auto_accept: bool) -> bool:
567 sys.stdout.write(input_text)
568 if auto_accept:
569 sys.stdout.write("Y\n")
570 return True
571 return input().lower() != "n"
572
573
574def apply_optional_remediation(

Callers 2

write_out_fileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected