|
@@ -62,7 +62,7 @@ public interface LlmApiClient {
|
|
|
@Body ChatRequest request);
|
|
|
|
|
|
/**
|
|
|
- * 大模型接口余额查询
|
|
|
+ * 查询大模型接口余额
|
|
|
*
|
|
|
* @param baseUrl 接口前缀地址,默认取配置文件的值(选填)
|
|
|
* @param signature 使用机构AK构造Secret类型签名
|
|
@@ -73,6 +73,18 @@ public interface LlmApiClient {
|
|
|
LlmAppBalance getBalance(@Header(AiConstants.BASE_URL) String baseUrl, @Tag SignatureInfo signature,
|
|
|
@Header(AiConstants.LLM_APP_TYPE) LlmAppType type);
|
|
|
|
|
|
+ /**
|
|
|
+ * 消费大模型接口余额
|
|
|
+ *
|
|
|
+ * @param baseUrl 接口前缀地址,默认取配置文件的值(选填)
|
|
|
+ * @param signature 使用机构AK构造Secret类型签名
|
|
|
+ * @param type 大模型应用类型
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @POST(AiConstants.LLM_BALANCE_CONSUME_PATH)
|
|
|
+ LlmAppBalance consumeBalance(@Header(AiConstants.BASE_URL) String baseUrl, @Tag SignatureInfo signature,
|
|
|
+ @Header(AiConstants.LLM_APP_TYPE) LlmAppType type);
|
|
|
+
|
|
|
/**
|
|
|
* 大模型提示词模版获取
|
|
|
*
|