From c60f157b6f84a8b289a550b6b4435bc387d19654 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=B2=A9=E5=B2=A9?= Date: Thu, 4 Jun 2026 14:57:41 +0800 Subject: [PATCH] =?UTF-8?q?init:=20=E6=90=AD=E5=BB=BA=E5=88=9D=E5=A7=8B?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.example | 2 ++ .gitignore | 3 +++ package.json | 17 +++++++++++++++++ src/index.ts | 1 + tsconfig.json | 7 +++++++ 5 files changed, 30 insertions(+) create mode 100644 .env.example create mode 100644 .gitignore create mode 100644 package.json create mode 100644 src/index.ts create mode 100644 tsconfig.json diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..2428ff7 --- /dev/null +++ b/.env.example @@ -0,0 +1,2 @@ +OPENAI_API_KEY=sk-your-key-here +OPENAI_BASE_URL=https://api.openai.com/v1 \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b4b4711 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +node_modules +.env +pnpm-lock.yaml \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000..9c4262c --- /dev/null +++ b/package.json @@ -0,0 +1,17 @@ +{ + "name": "llm-to-agent", + "version": "0.1.0", + "type": "module", + "scripts": { + "dev": "tsx src/index.ts" + }, + "dependencies": { + "dotenv": "^16.x", + "openai": "^4.x" + }, + "devDependencies": { + "@types/node": "^25.9.1", + "tsx": "^4.x", + "typescript": "^5.x" + } +} \ No newline at end of file diff --git a/src/index.ts b/src/index.ts new file mode 100644 index 0000000..d4463f3 --- /dev/null +++ b/src/index.ts @@ -0,0 +1 @@ +console.log("Hello, LLM to Agent!"); \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..057c24d --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,7 @@ +{ + "compilerOptions": { + "module": "esnext", + "moduleResolution": "bundler", + "types": ["node"] + } +} \ No newline at end of file