AI 资讯
LLM integration with OpenAI Responses API
Large language models (LLMs) understand and generate text from prompts. OpenAI exposes models through the Responses API . The official openai npm package is the practical way to call it from Node.js. This post covers common patterns beyond a single prompt string. Prerequisites OpenAI account Generated API key Enabled billing Node.js version 26 openai package installed ( npm i openai ) For Markdown output: marked , dompurify , and jsdom ( npm i marked dompurify jsdom ) Client setup Create a client with your API key (read from the environment in production). import OpenAI from ' openai ' ; const client = new OpenAI ({ apiKey : process . env . OPENAI_API_KEY }); The same SDK can target other hosts that implement a compatible API by setting baseURL and apiKey : const client = new OpenAI ({ apiKey : process . env . LLM_API_KEY , baseURL : ' https://your-gateway.example/v1 ' , }); Azure OpenAI uses AzureOpenAI instead. Many third-party gateways support Chat Completions only; the examples below use client.responses.* , so confirm your provider supports the Responses API (especially for tools like web search). Basic integration Pass a string as input and read output_text from the response. const response = await client . responses . create ({ model : ' gpt-5.5 ' , input : ' Write a one-sentence bedtime story about a unicorn. ' , }); console . log ( response . output_text ); System prompt Use top-level instructions for stable behavior (tone, format, role). They take precedence over casual wording in the user message. const response = await client . responses . create ({ model : ' gpt-5.5 ' , instructions : ' Reply in one short sentence. Use plain language. ' , input : ' Explain what an LLM is. ' , }); console . log ( response . output_text ); Few-shot prompting Pass prior turns as an input array with user and assistant roles, then the new user message. Keep task rules in instructions . const response = await client . responses . create ({ model : ' gpt-5.5 ' , instructions :
AI 资讯
BadHost Vulnerability Exposes AI Agents, Evaluators, and LLM Gateways
BadHost is a high-severity authentication bypass vulnerability in the widely used Python web framework Starlette, with 325 million weekly downloads. The flaw allows attackers to use malformed HTTP Host headers to bypass path-based access controls and access sensitive AI agent infrastructure, among other systems. By Sergio De Simone
开源项目
🔥 DayuanJiang / next-ai-draw-io - A next.js web application that integrates AI capabilities wi
GitHub热门项目 | A next.js web application that integrates AI capabilities with draw.io diagrams. This app allows you to create, modify, and enhance diagrams through natural language commands and AI-assisted visualization. | Stars: 30,605 | 894 stars this week | 语言: TypeScript
开源项目
🔥 stablyai / orca - Orca is the next-gen IDE for working with a fleet of paralle
GitHub热门项目 | Orca is the next-gen IDE for working with a fleet of parallel agents. Run any coding agent with your own subscription. Available on desktop and mobile. | Stars: 3,880 | 616 stars this week | 语言: TypeScript
开源项目
🔥 chopratejas / headroom - Compress tool outputs, logs, files, and RAG chunks before th
GitHub热门项目 | Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 60-95% fewer tokens, same answers. Library, proxy, MCP server. | Stars: 3,594 | 1,451 stars this week | 语言: Python
开源项目
🔥 AlexsJones / llmfit - Hundreds of models & providers. One command to find what run
GitHub热门项目 | Hundreds of models & providers. One command to find what runs on your hardware. | Stars: 27,018 | 115 stars today | 语言: Rust
开源项目
🔥 eythaann / Seelen-UI - The Fully Customizable Desktop Environment for Windows 10/11
GitHub热门项目 | The Fully Customizable Desktop Environment for Windows 10/11. | Stars: 16,942 | 12 stars today | 语言: Rust
开源项目
🔥 servo / servo - Servo aims to empower developers with a lightweight, high-pe
GitHub热门项目 | Servo aims to empower developers with a lightweight, high-performance alternative for embedding web technologies in applications. | Stars: 36,887 | 15 stars today | 语言: Rust
开源项目
🔥 zeroclaw-labs / zeroclaw - Fast, small, and fully autonomous AI personal assistant infr
GitHub热门项目 | Fast, small, and fully autonomous AI personal assistant infrastructure, any OS, any platform — deploy anywhere, swap anything 🦀 | Stars: 31,680 | 30 stars today | 语言: Rust
开源项目
🔥 rust-lang / rust - Empowering everyone to build reliable and efficient software
GitHub热门项目 | Empowering everyone to build reliable and efficient software. | Stars: 113,279 | 56 stars today | 语言: Rust
开源项目
🔥 dmtrKovalenko / fff - The fastest and the most accurate file search toolkit for AI
GitHub热门项目 | The fastest and the most accurate file search toolkit for AI agents, Neovim, Rust, C, and NodeJS | Stars: 6,992 | 121 stars today | 语言: Rust
开源项目
🔥 better-auth / better-auth - The most comprehensive authentication framework
GitHub热门项目 | The most comprehensive authentication framework | Stars: 28,543 | 19 stars today | 语言: TypeScript
开源项目
🔥 ruvnet / ruflo - 🌊 The leading agent meta-harness for Claude. Deploy intellig
GitHub热门项目 | 🌊 The leading agent meta-harness for Claude. Deploy intelligent multi-agent swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning swarm intelligence, RAG integration, and native Claude Code / Codex Integration | Stars: 57,138 | 354 stars today | 语言: TypeScript
开源项目
🔥 reconurge / flowsint - A modern platform for visual, flexible, and extensible graph
GitHub热门项目 | A modern platform for visual, flexible, and extensible graph-based investigations. For cybersecurity analysts and investigators. | Stars: 4,147 | 351 stars today | 语言: TypeScript
开源项目
🔥 pcottle / learnGitBranching - An interactive git visualization and tutorial. Aspiring stud
GitHub热门项目 | An interactive git visualization and tutorial. Aspiring students of git can use this app to educate and challenge themselves towards mastery of git! | Stars: 33,538 | 37 stars today | 语言: JavaScript
开源项目
🔥 WebKit / WebKit - Home of the WebKit project, the browser engine used by Safar
GitHub热门项目 | Home of the WebKit project, the browser engine used by Safari, Mail, App Store and many other applications on macOS, iOS and Linux. | Stars: 9,863 | 4 stars today | 语言: JavaScript
开源项目
🔥 hakimel / reveal.js - The HTML Presentation Framework
GitHub热门项目 | The HTML Presentation Framework | Stars: 71,524 | 157 stars today | 语言: JavaScript
开源项目
🔥 microsoft / skills-for-copilot-studio - A skill for AI-coding tools to build and edit Microsoft Copi
GitHub热门项目 | A skill for AI-coding tools to build and edit Microsoft Copilot Studio agents as YAML — with schema validation, templates, and AI-powered skills. Suited for Claude Code, GitHub Copilot CLI, and more. | Stars: 286 | 5 stars today | 语言: JavaScript
开源项目
🔥 freqtrade / freqtrade - Free, open source crypto trading bot
GitHub热门项目 | Free, open source crypto trading bot | Stars: 51,018 | 68 stars today | 语言: Python
开源项目
🔥 elder-plinius / OBLITERATUS - OBLITERATE THE CHAINS THAT BIND YOU
GitHub热门项目 | OBLITERATE THE CHAINS THAT BIND YOU | Stars: 5,922 | 62 stars today | 语言: Python