开发者工具箱使用指南
核对 JSON 变更
在 JSON 对比中,将旧版粘贴到左侧、新版粘贴到右侧。工具会自动对比并高亮变更。对象键的顺序不影响结果,数组按下标比较。比如 "version": 1 变为 "version": 2,同一行会显示为更改。
整理 SQL
将查询粘贴到 SQL 编辑器后,工具会自动格式化并高亮关键字。使用复制按钮可取得纯文本 SQL,便于粘贴回数据库客户端。
为 XXL-JOB 生成 Cron
选择「XXL-JOB(六字段)」后,可在表达式输入框中直接编辑。例如 0 0 9 * * ? 表示每天 9 点运行。最后的 ? 表示不指定星期,实际执行时间取决于调度器的时区。
计算模型 Token
先选择目标模型,再粘贴文本。同一段文本在不同分词器下的结果可能不同。工具统计的是输入文本本身,聊天接口添加的消息包装和系统提示词也会占用 Token。
Developer Toolbox Guide
Review JSON changes
In JSON Diff, paste the previous version on the left and the updated version on the right. Differences are highlighted as you edit. Object key order is ignored, and arrays are compared by index. Changing "version": 1 to "version": 2 appears as a change on the same line.
Format SQL
Paste a query into the SQL editor to format it and highlight keywords. Use the copy button to get plain SQL that you can paste into your database client.
Write a Cron expression for XXL-JOB
Switch to the six-field XXL-JOB format to edit the expression directly. For example, 0 0 9 * * ? runs every day at 9 a.m. The final ? leaves the day of the week unspecified. The scheduler's time zone determines the actual run time.
Count model tokens
Choose the target model, then paste your text. Different tokenizers can give different counts for the same text. The tool counts the text you enter. API message wrappers and system prompts can add tokens to a request.