上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 20 下一页
摘要: wsl2虚拟机默认不能通过windows代理访问网络,可通过如下设置: [wsl2] autoProxy = true dnsTunneling = true 这样就可共享windows代理服务器。 阅读全文
posted @ 2024-12-17 16:38 卓能文 阅读(150) 评论(0) 推荐(0)
摘要: import io import os from PyPDF2 import PdfReader, PdfWriter from reportlab.pdfgen import canvas from reportlab.lib.pagesizes import A4 from reportlab. 阅读全文
posted @ 2024-12-16 08:46 卓能文 阅读(126) 评论(0) 推荐(0)
摘要: import 'dotenv/config'; import { Hono } from 'hono'; import { streamText } from 'hono/streaming'; import OpenAI from 'openai'; const openai = new Open 阅读全文
posted @ 2024-12-04 19:07 卓能文 阅读(36) 评论(0) 推荐(0)
摘要: 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 卓能文 阅读(37) 评论(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 卓能文 阅读(20) 评论(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 卓能文 阅读(41) 评论(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 卓能文 阅读(17) 评论(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 卓能文 阅读(17) 评论(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 卓能文 阅读(162) 评论(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 卓能文 阅读(13) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 20 下一页