-
Notifications
You must be signed in to change notification settings - Fork 5k
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
星火API接入错误 #4013
Comments
此问题在源代码中也存在,并且在镜像中无法使用vi\vim\nano通过apt updates后apt install vim才可以使用,但是编辑python代码时候,还是会乱码,应该是需要配置下vim的编码才可以 |
To address the encoding issues when editing Python files with Vim in the Docker environment, ensure Vim is configured to use UTF-8 encoding. Add these lines to your set encoding=utf-8
set fileencoding=utf-8 This setup will help avoid syntax or encoding errors when working with Python files that include non-ASCII characters. For the issue with the Xinghuo API integration in "v3.5": {"domain": "generalv3.5", "url": "ws://spark-api.xf-yun.com/v3.5/chat", "max_tokens": 16000}, This ensures the class uses the correct domain for API requests. Regarding the Docker environment and the absence of text editors like vi, vim, or nano, it's common for Docker images, especially those optimized for production, to exclude such tools to minimize the image size and reduce potential security vulnerabilities. If you need to edit files within the Docker container, installing a text editor is necessary, but remember to configure it properly for handling Python files to avoid encoding issues.
|
问题描述 / Problem Description
用简洁明了的语言描述这个问题 / Describe the problem in a clear and concise manner.
使用docker拉取镜像,进入后配置星火API后重启,使用星火api显示错误
原因是server/model_workers/xinghuo.py的domain写错了,应该是generalv3.5而不是3
复现问题的步骤 / Steps to Reproduce
预期的结果 / Expected Result
描述应该出现的结果 / Describe the expected result.
实际结果 / Actual Result
描述实际发生的结果 / Describe the actual result.
环境信息 / Environment Information
附加信息 / Additional Information
添加与问题相关的任何其他信息 / Add any other information related to the issue.
The text was updated successfully, but these errors were encountered: