Commit f286a8139205815665ecc1c3090ae79e368360ee
1 parent
f2ee2008
【功能修复】AI:升级 tika 版本,解决 pdf 读取问题
Showing
2 changed files
with
2 additions
and
2 deletions
yudao-dependencies/pom.xml
| ... | ... | @@ -60,7 +60,7 @@ |
| 60 | 60 | <transmittable-thread-local.version>2.14.5</transmittable-thread-local.version> |
| 61 | 61 | <commons-net.version>3.11.1</commons-net.version> |
| 62 | 62 | <jsch.version>0.1.55</jsch.version> |
| 63 | - <tika-core.version>2.9.2</tika-core.version> | |
| 63 | + <tika-core.version>3.1.0</tika-core.version> <!-- TODO 芋艿:升级后,需要看看 jdk8 的兼容性;也要同步 cloud --> | |
| 64 | 64 | <ip2region.version>2.7.0</ip2region.version> |
| 65 | 65 | <bizlog-sdk.version>3.0.6</bizlog-sdk.version> |
| 66 | 66 | <netty.version>4.1.116.Final</netty.version> | ... | ... |
yudao-module-ai/yudao-spring-boot-starter-ai/src/main/java/cn/iocoder/yudao/framework/ai/core/util/AiUtils.java
| ... | ... | @@ -19,7 +19,7 @@ import org.springframework.ai.zhipuai.ZhiPuAiChatOptions; |
| 19 | 19 | public class AiUtils { |
| 20 | 20 | |
| 21 | 21 | public static ChatOptions buildChatOptions(AiPlatformEnum platform, String model, Double temperature, Integer maxTokens) { |
| 22 | - //noinspection EnhancedSwitchMigration | |
| 22 | + // noinspection EnhancedSwitchMigration | |
| 23 | 23 | switch (platform) { |
| 24 | 24 | case TONG_YI: |
| 25 | 25 | // TODO @芋艿:tongyi 暂时没 maxTokens 选项 | ... | ... |