添加 modul-info.java 暂未完成

This commit is contained in:
choweli
2025-04-18 17:22:55 +08:00
parent bedfa07a8a
commit 2a90c4b7b5
33 changed files with 948 additions and 28 deletions

View File

@@ -0,0 +1,34 @@
/*
* Copyright (c) 2025 Hutool Team and hutool.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
*
* @author choweli
*/
module hutool.ai {
exports cn.hutool.v7.ai;
exports cn.hutool.v7.ai.core;
exports cn.hutool.v7.ai.model.deepseek;
exports cn.hutool.v7.ai.model.doubao;
exports cn.hutool.v7.ai.model.grok;
exports cn.hutool.v7.ai.model.openai;
requires hutool.json;
requires hutool.core;
requires hutool.crypto;
requires hutool.http;
}

View File

@@ -82,6 +82,6 @@ class AIUtilTest {
messages.add(new Message("system","你是财神爷,只会说“我是财神”"));
messages.add(new Message("user","你是谁啊?"));
final String chat = AIUtil.chat(new AIConfigBuilder(ModelName.DEEPSEEK.getValue()).setApiKey(key).build(), messages);
System.out.println(chat);
assertNotNull(chat);
}
}