上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 25 下一页
摘要: import 'dotenv/config'; import { Elysia, t } from 'elysia'; import OpenAI from 'openai'; const openai = new OpenAI({ apiKey: process.env.OPENAI_API_KE 阅读全文
posted @ 2024-12-04 17:08 卓能文 阅读(95) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document< 阅读全文
posted @ 2024-12-03 20:34 卓能文 阅读(52) 评论(0) 推荐(0)
摘要: package main import ( "context" "fmt" "log" "os" "github.com/joho/godotenv" "github.com/openai/openai-go" "github.com/openai/openai-go/option" ) func 阅读全文
posted @ 2024-11-28 17:42 卓能文 阅读(127) 评论(0) 推荐(0)
摘要: happyx文档 happyx源码 SSR 创建工程: hpx create --name:ssrdemo --kind:SSR --templates --language:Nim 开发: hpx dev --reload 发布,创建justfile: build: #!/usr/bin/env 阅读全文
posted @ 2024-11-23 21:58 卓能文 阅读(46) 评论(0) 推荐(0)
摘要: 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 卓能文 阅读(66) 评论(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 卓能文 阅读(255) 评论(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 卓能文 阅读(43) 评论(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 卓能文 阅读(55) 评论(0) 推荐(0)
摘要: pnpm i @tailwindcss/vite@next omi tailwindcss@next vite package.json: { "type": "module", "dependencies": { "@tailwindcss/vite": "4.0.0-alpha.24", "om 阅读全文
posted @ 2024-09-14 19:28 卓能文 阅读(47) 评论(0) 推荐(0)
摘要: import css from "./index.scss?inline"; 阅读全文
posted @ 2024-09-14 15:38 卓能文 阅读(27) 评论(0) 推荐(0)
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 25 下一页