本地大漠模型联调,阿里百炼token

This commit is contained in:
2026-04-05 18:23:04 +08:00
parent db0bde39e3
commit 6043dc2665
8 changed files with 109 additions and 32 deletions

View File

@@ -0,0 +1,11 @@
package com.rj.common;
/**
* 本地 OpenAI 兼容接口生成总结的文本与 token 用量(来自 LangChain4j / 服务端 usage 字段)。
*/
public record LocalLlmSummaryResult(
String rawContent,
Integer totalTokens,
Integer inputTokens,
Integer outputTokens) {
}