10 2024 档案

摘要:import 'dotenv/config'; import OpenAI from 'openai'; const client = new OpenAI({ apiKey: process.env.OPENAI_API_KEY, baseURL: process.env.OPENAI_API_B 阅读全文
posted @ 2024-10-27 23:14 卓能文 阅读(9) 评论(0) 推荐(0) 编辑
摘要:nuitka # test.py def add(x: int, y: int) -> int: return x + y print(add(2, 3)) nuitka test.py --onefile --clang --static-libpython=yes # justfile buil 阅读全文
posted @ 2024-10-27 10:57 卓能文 阅读(46) 评论(0) 推荐(0) 编辑
摘要:package main import ( "flag" "fmt" "github.com/carlmjohnson/versioninfo" ) func main() { fmt.Println("ShortInfo:", versioninfo.Short()) versioninfo.Ad 阅读全文
posted @ 2024-10-19 11:42 卓能文 阅读(6) 评论(0) 推荐(0) 编辑
摘要:原始地址:https://github.com/alarbada/htmx-stream window.htmx.defineExtension("stream", { onEvent: (name, evt) => { if (name "htmx:beforeRequest") { let el 阅读全文
posted @ 2024-10-16 18:38 卓能文 阅读(7) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示