feat: stream chat and settle metered CNY usage atomically

This commit is contained in:
wlx committed 2026-09-20 01:36:22 +08:00
1 parent 7360cf3ebe
commit b46ee72f2d
28 files changed
+1098 -86

No files matched your search

@@ -22,7 +22,8 @@ public class WebConfig implements WebMvcConfigurer {
registry.addMapping("/**")
.allowedOrigins(allowedOrigins)
.allowedMethods("GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS")
.allowedHeaders("Content-Type", "Authorization", "X-Moyi-Source")
.allowedHeaders("Content-Type", "Authorization", "X-Moyi-Source", "Idempotency-Key")
.exposedHeaders("X-Request-Id", "X-Moyi-Cost-CNY")
.allowCredentials(true)
.maxAge(3600);
}