---
title: "CORS Chat：一个用于测试OpenAI-Responses兼容聊天端点的浏览器工具"
source: "Simon Willison 博客（Atom）"
source_tier: "t2"
url: "https://simonwillison.net/2026/Aug/15/cors-chat/"
permalink: "https://feed.astralor.com/items/itm_e25d8c268c6a65abf77640d3"
published: "2026-08-15T14:49:54.000Z"
score: 72
channel: "tech"
tags: ["CORS Chat","LM Studio","OpenAI-Responses","OpenRouter","Simon Willison","SVG"]
---

# CORS Chat：一个用于测试OpenAI-Responses兼容聊天端点的浏览器工具

## AI 点评

> 这个工具虽然小，但它精准戳中了本地模型测试的痛点：每次想快速验证一个兼容 API 的聊天端点时，总是缺一个轻量 UI。如果你是做 LLM 应用开发或本地部署调试的人，这绝对值得一试，特别是那个流式渲染 SVG 的功能，比纯文本日志直观多了。

## 速览

Simon Willison 当天构建了 CORS Chat，一个借助 GPT-5.6-Sol xhigh 生成的浏览器工具，用于测试兼容 OpenAI-Responses 的聊天端点。他已在 LM Studio（启用 --cors 选项）和 OpenRouter 上验证通过，并能配合本地运行的 Qwen 3.8 27B 模型（运行在 M5 MacBook Pro 或 NVIDIA DGX Spark 上）工作。对话保存在浏览器中，可导出为 JSON。该工具还支持流式渲染 SVG 图像，在生成过程中渐进显示，为多模态测试提供了便利。

## 关键点

- CORS Chat 是一个开源式的浏览器 Web UI，用于与 OpenAI-Responses 兼容的端点进行交互，支持 LM Studio 和 OpenRouter。
- 对话自动保存在浏览器中，可一键导出为 JSON，方便回放和调试。
- 支持流式渲染 SVG 图片，在 token 生成过程中逐步显示图像内容。
- 已在 M5 MacBook Pro 和 NVIDIA DGX Spark 本地模型环境中验证，也适用于远程 API。

## 全文

Tool: CORS Chat I built this today (with GPT-5.6-Sol xhigh) to help test Qwen 3.8 27B running in LM Studio on both my M5 MacBook Pro and an NVIDIA DGX Spark. It provides a web UI for exercising an OpenAI-Responses-compatible chat endpoint. I've tried it against LM Studio with the --cors option and OpenRouter, and both work fine. Conversations are persisted in the browser and can be exported as copy-pasted JSON. One fun detail is that it notices SVG images that are being generated and progressively renders them in the chat while the tokens are still streaming in. Tags: svg, ai, generative-ai, llms, cors, openrouter, lm-studio

---

引用前请核对原文;本文由星际流动整理:https://feed.astralor.com/items/itm_e25d8c268c6a65abf77640d3
