From e30d12a7e565f7ca92bab60f3cd794136e1c1180 Mon Sep 17 00:00:00 2001 From: wood chen Date: Fri, 7 Feb 2025 21:56:22 +0800 Subject: [PATCH] Refactor price submission to support batch updates and improve frontend design --- main.ts | 281 ++++++++++++++++++++++++++++++++++---------------------- 1 file changed, 172 insertions(+), 109 deletions(-) diff --git a/main.ts b/main.ts index a00d425..11e6d3c 100644 --- a/main.ts +++ b/main.ts @@ -1,100 +1,118 @@ import { serve } from "https://deno.land/std@0.220.1/http/server.ts"; +// 在文件开头添加接口定义 +interface Price { + model: string; + type: string; + channel_type: number; + input: number; + output: number; +} + // HTML 页面 const html = ` - AI Models Price Update + AI Models Price API
-

AI Models Price Update

-
-
- - +

AI Models Price API

+ +