Skip to content
Shihao Qi
ProjectsWritingNotesSearchAbout

Writing

  • Filtering kwargs with inspect.signature: a function that takes **kwargs looks like it accepts nothing, and a retry lost its model_path11-08
  • Generator Exceptions Surface on the First next(): try Around create_chat_completion(stream=True) Never Sees the Context Window Error11-08
  • LLM Request Observability: Logs Count Messages, and the Native Tools Schema Shows Up Nowhere11-07
  • Breaking Out of an Async Generator Triggers aclose(): Code After the Last Yield Never Runs11-07
  • The Message You Edited Is Still in Memory11-01
  • Four Seconds on a First Visit10-29
  • The Synthetic Set Picked C. Forty-Four Real Questions Picked B.10-27
  • Where the Prefix-Cache Hits Went10-27
  • Sample Age, Catch-up Sampling, and Measurement Validity10-22
  • A Failed Batch Stays Failed10-22
All posts →

Notes

  • A Clean Ping Doesn’t Mean Big Packets Get Through10-27
  • Answer the Ping on the Socket That Received It10-27
  • Non-ASCII text and parentheses in Windows batch files: commands cut into fragments after chcp 65001, and a ) inside echo closes the if block early10-27
  • time.strftime uses the system time zone: write with the configured zone, read with the system one, green locally and a day off on UTC CI10-17
  • json.dump iterates while it writes: save outside the lock and you get “dictionary changed size during iteration”, save inside and every writer waits10-16
All notes →

Topics

LLMPythonDebuggingMeasurementAutarkiaObservabilityTestingEngineeringEvaluationForensicsAll tags →

© 2026 Shihao Qi
TagsRSSGitHubEmail