本地大漠模型联调,阿里百炼token
This commit is contained in:
11
src/main/java/com/rj/common/LocalLlmSummaryResult.java
Normal file
11
src/main/java/com/rj/common/LocalLlmSummaryResult.java
Normal file
@@ -0,0 +1,11 @@
|
||||
package com.rj.common;
|
||||
|
||||
/**
|
||||
* 本地 OpenAI 兼容接口生成总结的文本与 token 用量(来自 LangChain4j / 服务端 usage 字段)。
|
||||
*/
|
||||
public record LocalLlmSummaryResult(
|
||||
String rawContent,
|
||||
Integer totalTokens,
|
||||
Integer inputTokens,
|
||||
Integer outputTokens) {
|
||||
}
|
||||
Reference in New Issue
Block a user