github linshenkx/prompt-optimizer v2.11.12

4 hours ago

English

Summary

  • Add desktop model network settings for environments where company model endpoints require direct connections while other models need a proxy.
  • Choose system, direct, or manual HTTP proxy routing and configure domain bypass rules under Model Manager → Network Settings.

Highlights

  • Apply one network configuration to model requests in the desktop instance, including model discovery, connection tests, prompt optimization, and text and image generation.
  • Bypass proxies for exact domains or wildcard subdomains. Local and private IP addresses connect directly.
  • Connection tests show whether the request used a direct connection, system proxy, or manual proxy.

Product Updates

Desktop

  • Add Network Settings to Model Manager, with system routing as the default.
  • Support unauthenticated HTTP proxies in manual mode. System mode resolves system proxy and PAC rules for each target address.
  • Save settings on the local machine and apply them after restarting the desktop app. Restarting from the settings window is blocked while model requests are running.
  • Scope these settings to model requests. Application updates and cloud backups retain their existing network configuration.

Web

  • No functional changes.

Extension

  • No functional changes.

Core/Infra

  • Remove duplicate language-switching links from the README.

Fixes

  • Allow company model endpoints to avoid an unsuitable system proxy through direct mode or domain bypass rules, addressing model discovery and connection failures (#364).

Breaking Changes / Upgrade Notes

  • No user-data migration is required. Existing model configurations remain available, and system routing remains the default until settings are changed.
  • Choose Direct when company models must connect directly. To use an external proxy alongside company models, keep a proxy mode and add company model domains to the bypass list.
  • *.company.com matches subdomains only. Add a separate exact rule to also match company.com itself.
  • Restart after saving network settings. Settings are machine-local and excluded from data backups and model configuration exports.
  • These settings are unavailable in the web app and browser extension. Manual mode does not yet support proxy authentication or SOCKS configuration.

Developer Notes

  • Add routing isolation for model requests, settings persistence, and desktop IPC validation.
  • Validated with routing and settings tests, UI checks, isolated Electron scenarios, and a manual desktop trial.

Installation guide: English | 中文
Source release notes (EN)


中文

概括

  • 新增桌面端模型网络设置,解决公司模型接口需要直连、其他模型需要代理时的连接配置问题。
  • 在「模型管理 → 网络设置」中统一选择跟随系统、直接连接或手动 HTTP 代理,并配置域名绕过规则。

亮点

  • 一个桌面实例内的模型调用统一使用网络设置,覆盖模型列表获取、连接测试、提示词优化以及文本和图像生成。
  • 支持精确域名和通配子域名绕过代理;本地及内网 IP 自动直连。
  • 连接测试显示实际采用的直连、系统代理或手动代理路径,方便排查连接问题。

产品更新

Desktop

  • 在模型管理中增加网络设置入口,默认保持跟随系统。
  • 手动代理支持无需认证的 HTTP 代理;跟随系统模式会按目标地址解析系统代理和 PAC 规则。
  • 网络设置保存在本机,保存后重启桌面应用生效;模型请求进行中会阻止从设置窗口重启。
  • 网络设置仅作用于模型请求,应用更新和云备份继续使用原有网络配置。

Web

  • 无功能变更。

Extension

  • 无功能变更。

Core/Infra

  • 简化 README 中重复的语言切换链接。

修复

  • 允许公司模型接口通过直接连接或域名绕过规则避开系统代理,避免因代理路径不适用导致模型获取和连接失败(#364)。

破坏性变更 / 升级说明

  • 无需迁移用户数据,现有模型配置保持可用;未修改网络设置时默认跟随系统。
  • 公司模型均需直连时,可选择「直接连接」;需要同时使用外部代理时,可保留代理模式并添加公司模型的域名绕过规则。
  • *.company.com 只匹配子域名,如需匹配 company.com 本身,请另加一条精确域名规则。
  • 保存网络设置后需要重启。设置仅保存在本机,不包含在数据备份或模型配置导出中。
  • 网页端和浏览器扩展不提供此设置;手动代理暂不支持代理认证和 SOCKS 配置。

开发者说明

  • 增加模型请求范围内的路由隔离、设置持久化和桌面 IPC 校验。
  • 已通过路由与设置测试、界面检查、隔离 Electron 场景验证及桌面人工试用。

安装文档:English | 中文
仓库版本说明(中文)


macOS note: if macOS reports the app as damaged or cannot verify the developer, this is usually caused by the quarantine attribute on downloaded apps. See the installation guide, or remove it after installing with xattr -rd com.apple.quarantine /Applications/PromptOptimizer.app; for a downloaded DMG, you can run the same command on ~/Downloads/PromptOptimizer-*.dmg before installing.
macOS 备注:如果 macOS 提示“已损坏”或“无法验证开发者”,通常是下载文件的隔离属性导致。请参考安装文档;也可以在安装后执行 xattr -rd com.apple.quarantine /Applications/PromptOptimizer.app,或在安装前对 ~/Downloads/PromptOptimizer-*.dmg 执行同类命令。

Don't miss a new prompt-optimizer release

NewReleases is sending notifications on new releases.