Add @promptunit/sdk — drop-in OpenAI client with automatic model routing#144
Open
scorpion4ik26-lang wants to merge 2 commits into
Open
Add @promptunit/sdk — drop-in OpenAI client with automatic model routing#144scorpion4ik26-lang wants to merge 2 commits into
scorpion4ik26-lang wants to merge 2 commits into
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request adds the @promptunit/sdk to the README.md file, describing it as a cost-effective OpenAI client for Node.js/TypeScript. The reviewer suggested also updating the Chinese documentation (README.cn.md) with a provided translation to maintain consistency across languages.
Comment on lines
+508
to
+510
| - [@promptunit/sdk](https://github.com/promptunit/sdk) | ||
|
|
||
| A drop-in OpenAI client for Node.js/TypeScript that proxies calls through PromptUnit's routing engine, automatically selecting cheaper models with built-in failover. 40-70% cost reduction with zero code changes in your application. |
Contributor
There was a problem hiding this comment.
The repository includes a Chinese version of the documentation (README.cn.md), which is currently out of sync with this change. Please add the corresponding entry to README.cn.md to ensure consistency for Chinese-speaking users.
Suggested translation for README.cn.md:
-
一个适用于 Node.js/TypeScript 的无缝替换 OpenAI 客户端,通过 PromptUnit 的路由引擎代理调用,自动选择更便宜的模型并内置故障转移机制。在无需更改代码的情况下可降低 40-70% 的成本。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add @promptunit/sdk to Development > Tools.
A drop-in OpenAI client for Node.js/TypeScript that proxies calls through a routing engine, automatically selecting cheaper models (GPT-4o-mini, Claude Haiku, Gemini Flash) based on task complexity. Built-in fallback to OpenAI if the proxy is unreachable. 40-70% cost reduction, zero code changes required.
npm install @promptunit/sdk