]> git.giacomolli.uk - onechat/commit
Name and order the ChatGPT login code
authorAnderson A. Giacomolli <agiacomolli@gmail.com>
Sat, 7 Nov 2026 16:29:06 +0000 (13:29 -0300)
committerAnderson A. Giacomolli <agiacomolli@gmail.com>
Sat, 7 Nov 2026 16:30:22 +0000 (13:30 -0300)
commit6d1d9d9a7cf90b25a2e10af1c5bc56faee7e494c
tree24fb7690213ca5f3b037095953f2d97c6b853203
parent02cdaff8be27f37f44db8892bb12554f2d702323
Name and order the ChatGPT login code

Every package-level name of the ChatGPT login starts with chatgpt, and
its file is chatgpt.go. The login has an issuer, a client ID, a token
file, and a poll interval, and the prefix keeps these names apart from
the names of the Telegram bot and the model client. The client ID
constant does not name another program.

The declarations of the login files follow the order of the go-code
skill. The behavior does not change.

Issue: 947bddb
chatgpt.go [moved from auth.go with 59% similarity]
chatgpt_test.go [moved from auth_test.go with 72% similarity]
main.go
model.go
model_test.go