deepseek java demo运行发生异常,请问该如何解决

代码用的demo完成一样的代码,只是把DASHSCOPE_API_KEY替换成了申请的key。
多轮对话
An error occurred while calling the generation service: {"statusCode":-1,"message":"SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target","code":"network error","isJson":false}

流式输出
An exception occurred: {"statusCode":-1,"message":"Get response failed!","code":"network error","isJson":false}

展开
收起
游客qp226u3qmy56m 2025-02-19 09:38:21 80 发布于四川 分享
分享
版权
举报
1 条回答
写回答
取消 提交回答
  • 请检查您的Java环境和DeepSeek的依赖库是否正确配置,如果问题依旧,建议咨询阿里云的工作人员以获得更详细的帮助。如果对您有帮助的话,可以帮忙采纳一下。谢谢。

    2025-02-19 11:55:11 举报
    赞同 220 评论

    评论

    全部评论 (0)

    登录后可评论

基于通义系列大模型和开源大模型的一站式大模型服务平台,提供「生成式大模型的全流程应用工具」和「企业大模型的全链路训练工具」。为大模型,也为小应用。 阿里云百炼官网网址:https://www.aliyun.com/product/bailian

还有其他疑问?
咨询AI助理