]> git.giacomolli.uk - onechat/commit
Read the time directly in the model client
authorAnderson A. Giacomolli <agiacomolli@gmail.com>
Fri, 6 Nov 2026 17:38:59 +0000 (14:38 -0300)
committerAnderson A. Giacomolli <agiacomolli@gmail.com>
Fri, 6 Nov 2026 17:38:59 +0000 (14:38 -0300)
commit74583992d2939791ef74155c99eb194269ac3721
tree08335a063d90d7d4183a3de5ddded0fa8b56ddf5
parent0821d23c64f4ffc856760e4914fa39ba2e3260e4
Read the time directly in the model client

The model client and the ChatGPT authorizer read the time with time.Now
instead of a clock field. No caller set the field, so it was an
injection with no user. A test that needs fake time can run in a
testing/synctest bubble, where the time package uses a fake clock.

Issue: b14d537
auth.go
responses.go