Skip to content

为某个不愿意使用标准openai api的厂商擦屁股......(苹果自觉的打钱哈)

License

Notifications You must be signed in to change notification settings

yuemingruoan/Xcode26-openrouter-proxy

Repository files navigation

Xcode26-openrouter-proxy

English | 中文

Overview

Apple has updated the AI features in Xcode 26, allowing calls to local or third-party AI services. However, OpenRouter does not seem to use the standard OpenAI API, which prevents Xcode from directly integrating with OpenRouter. This project provides a middleware layer that converts OpenRouter's API into a format supported by Xcode. This project is adapted from https://github.com/Kirow/OpenRouterXcodeProxy.git, but the original project is currently not functioning properly.

Usage

Intsall

npm install -g @yuemingruoan/xcode26-openrouter-proxy

Start

export OPENROUTER_API_KEY="YOUR_API_KEY"
opentransapi

Q&A

Q: Why can't the Claude-4-opus model be used?
A: Because OpenRouter defaults to using models provided by Anthropic, and there seems to be an issue with OpenRouter's routing here. This is not a problem with this project; you will get the same result if you access it directly on the OpenRouter official website. Currently, we can only wait for OpenRouter to fix the routing.

About

为某个不愿意使用标准openai api的厂商擦屁股......(苹果自觉的打钱哈)

Resources

License

Stars

Watchers

Forks

Packages

No packages published