commit c60f157b6f84a8b289a550b6b4435bc387d19654 Author: 李岩岩 Date: Thu Jun 4 14:57:41 2026 +0800 init: 搭建初始项目 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