TencentCloud / TencentCloud/tencentcloud-sdk-java

引入混元模型,执行时报NoSuchMethodError

Open
#273 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
583
Forks
281
PR merge metrics
No merged PRs in 30d

Description

pom版本如下
<dependency> <groupId>com.tencentcloudapi</groupId> <artifactId>tencentcloud-sdk-java</artifactId> <version>3.1.1065</version> </dependency>
报错如下

java.lang.NoSuchMethodError: 'void com.tencentcloudapi.hunyuan.v20230901.models.ChatCompletionsRequest.setSkipSign(boolean)'
	at com.tencentcloudapi.hunyuan.v20230901.HunyuanClient.ChatCompletions(HunyuanClient.java:53) ~[tencentcloud-sdk-java-3.1.1065.jar:na]
	at com.yupi.yupicturebackend.manager.HunYuanManager.callHunYuan(HunYuanManager.java:67) ~[classes/:na]
	at com.yupi.yupicturebackend.manager.HunYuanManager.analyzeImage(HunYuanManager.java:34) ~[classes/:na]
	at com.yupi.yupicturebackend.manager.upload.FilePictureUpload.analyzeImage(FilePictureUpload.java:30) ~[classes/:na]
	at com.yupi.yupicturebackend.manager.upload.PictureUploadTemplate.uploadPicture(PictureUploadTemplate.java:53) ~[classes/:na]
	at com.yupi.yupicturebackend.service.impl.PictureServiceImpl.uploadPicture(PictureServiceImpl.java:172) ~[classes/:na]
	at com.yupi.yupicturebackend.service.impl.PictureServiceImpl$$FastClassBySpringCGLIB$$cfa7831c.invoke(<generated>) ~[classes/:na]
	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) ~[spring-core-5.3.24.jar:5.3.24]

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Tencent SDK dependency shown in pom and inspect the runtime dependency tree for multiple SDK versions. Trace HunyuanClient.ChatCompletions and HunYuanManager.callHunYuan, then verify that the resolved ChatCompletionsRequest class provides setSkipSign(boolean); done means the image analysis call runs without NoSuchMethodError.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.