Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[hotfix]: fix the prefix of the DashScopeApiConstants.DASHSCOPE_API_KEY #366

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

PolarishT
Copy link
Contributor

@PolarishT PolarishT commented Jan 12, 2025

Describe what this PR does / why we need it

  1. The current version of DASHSCOPE_API_KEY prefix Slightly different from the URL(https://help.aliyun.com/zh/model-studio/developer-reference/configure-api-key-through-environment-variables)
image

Describe how you did it

change com.alibaba.cloud.ai.dashscope.common.DashScopeApiConstants.DASHSCOPE_API_KEY form "AI_DASHSCOPE_API_KEY" to "DASHSCOPE_API_KEY";

Describe how to verify it

image

Copy link
Collaborator

@yuluo-yx yuluo-yx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

imo, we can update docs prefix.

The AI_DASHSCOPE_API_KEY is the key prefix that has already been determined.

can refer: https://docs.spring.io/spring-ai/reference/api/chat/openai-chat.html#_prerequisites

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants