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

bug: Add AI Model but the API call failed #125

Open
wingsfly opened this issue Oct 31, 2024 · 2 comments
Open

bug: Add AI Model but the API call failed #125

wingsfly opened this issue Oct 31, 2024 · 2 comments

Comments

@wingsfly
Copy link

Current Behavior

I've tried to add iFlytek Spark & Baichuan,with follow steps:

  1. Add AI Model & config the api_password/api_key
  2. In the Service list, add AI_Chat As Spark,just use the demo transplate api
  3. Click Publish with Version 1.0
  4. call with PostMan, follow the parameters in API_Docs
  5. Got the response: "{message: "not found"}"
  6. I modified the Spark model types and the api path, then republish, still got the same response
  7. Then I add Baichuan AI Model in a new AI Service, with the same action
  8. It response http "410 Gone"

I cannot find any instruction for these errors, so what should i do?
ps: I checked the tables in influxDB, with the status field promt like "403"&"410"

Expected Behavior

No response

Error Logs

No response

Steps to Reproduce

No response

Environment

  • APINTO Dashboard version:
  • Operating system (run uname -a):
@Dot-Liu
Copy link
Collaborator

Dot-Liu commented Nov 11, 2024

Can you provide corresponding screenshots to help us better understand the problem and see if it is caused by the configuration.

@wingsfly
Copy link
Author

以讯飞为例:
1、先添加AI模型:
image
模型在星火平台已测试可用:
image
2、添加消费者
3、添加服务,默认服务商选择“iFLYTEK SPARK”:
image
4、服务中添加订阅消费者:
image
5、直接使用默认生成的demo_translation_api,模型选择4.0Ultra,然后保存
image
6、发布版本:
image
7、使用postman请求API:
Auth选择APIKey,填写消费者的授权key:
image
body填写为api示例格式:
image
8、响应为403 Fobidden,message:not found
image

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

No branches or pull requests

2 participants