Replies: 1 comment
-
Take a look at the other examples: https://docs.librechat.ai/install/configuration/ai_endpoints.html |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Requst
curl --location 'https://dashscope.aliyuncs.com/api/v1/services/aigc/text-generation/generation' \ --header 'Authorization: Bearer <YOUR-DASHSCOPE-API-KEY>' \ --header 'Content-Type: application/json' \ --data '{ "model": "llama3-8b-instruct", "input":{ "messages":[ {"content":"Where is the capital of Zhejiang?","role":"user"}, {"content":"Thank you for asking! The capital of Zhejiang is Hangzhou.","role":"assistant"}, {"content":"What are the interesting places there?","role":"user"} ] } }'
Response
{ "output":{ "text":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx." }, "usage": { "output_tokens": 65, "input_tokens": 35 }, "request_id":"fbd7e41a-363c-938a-81be-8ae0f9fbdb3d" }
How to configure?
Beta Was this translation helpful? Give feedback.
All reactions