Add image-designer skill, align billing to DeepSeek ×1, and enrich Plaza demo.
Introduce AI image generation with chat shortcut and agent API, improve MindSpace chat-to-page save resolution, and seed Plaza covers with production deploy scripts. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+6
-6
@@ -14,7 +14,7 @@ const config = {
|
||||
minBillCents: 1,
|
||||
};
|
||||
|
||||
test('loadBillingConfig defaults to DeepSeek Flash × 3 at USD/CNY 7.2', () => {
|
||||
test('loadBillingConfig defaults to DeepSeek Flash × 1 at USD/CNY 7.2', () => {
|
||||
const savedInput = process.env.H5_BILL_INPUT_CENTS_PER_1K;
|
||||
const savedOutput = process.env.H5_BILL_OUTPUT_CENTS_PER_1K;
|
||||
const savedRate = process.env.H5_USD_CNY_RATE;
|
||||
@@ -23,8 +23,8 @@ test('loadBillingConfig defaults to DeepSeek Flash × 3 at USD/CNY 7.2', () => {
|
||||
process.env.H5_USD_CNY_RATE = '7.2';
|
||||
try {
|
||||
const billing = loadBillingConfig();
|
||||
assert.ok(Math.abs(billing.inputCentsPer1k - 0.3024) < 1e-9);
|
||||
assert.ok(Math.abs(billing.outputCentsPer1k - 0.6048) < 1e-9);
|
||||
assert.ok(Math.abs(billing.inputCentsPer1k - 0.1008) < 1e-9);
|
||||
assert.ok(Math.abs(billing.outputCentsPer1k - 0.2016) < 1e-9);
|
||||
} finally {
|
||||
if (savedInput == null) delete process.env.H5_BILL_INPUT_CENTS_PER_1K;
|
||||
else process.env.H5_BILL_INPUT_CENTS_PER_1K = savedInput;
|
||||
@@ -35,12 +35,12 @@ test('loadBillingConfig defaults to DeepSeek Flash × 3 at USD/CNY 7.2', () => {
|
||||
}
|
||||
});
|
||||
|
||||
test('computeDeltaCostCents bills DeepSeek Flash × 3 defaults with min charge', () => {
|
||||
test('computeDeltaCostCents bills DeepSeek Flash × 1 defaults with min charge', () => {
|
||||
const billing = {
|
||||
useBackendCost: false,
|
||||
usdCnyRate: 7.2,
|
||||
inputCentsPer1k: 0.3024,
|
||||
outputCentsPer1k: 0.6048,
|
||||
inputCentsPer1k: 0.1008,
|
||||
outputCentsPer1k: 0.2016,
|
||||
minBillCents: 1,
|
||||
};
|
||||
const previous = { lastInputTokens: 0, lastOutputTokens: 0 };
|
||||
|
||||
Reference in New Issue
Block a user