ragflow icon indicating copy to clipboard operation
ragflow copied to clipboard

[Feature Request]: Can RagFlow support ctyun(ctcloud)'s API ?

Open GMorandi opened this issue 10 months ago • 2 comments

Is there an existing issue for the same feature request?

  • [x] I have checked the existing issues.

Is your feature request related to a problem?

AS the title says , I resently got some Api powered py ctyun, i tried on ragflow but it shows connect error,

Describe the feature you'd like

i hope ragflow support ctyun api , or give us a config that can support openai-like api

Describe implementation you've considered

No response

Documentation, adoption, use case

https://huiju.ctyun.cn/modelSquare/7ba7726dad4c4ea4ab7f39c7741aea68?regionId=200000001852&tab=API_DOCUMENT

request

curl --location 'https://wishub-x1.ctyun.cn/v1/chat/completions' \
--header 'Authorization: Bearer APP_KEY' \
--header 'Content-Type: application/json' \
--data '{
 "model": "MODEL_ID",
 "stream": true,
 "messages": [
 {
 "role": "user",
 "content": "你是谁"
 }
 ]
 }'

Additional information

No response

GMorandi avatar Feb 28 '25 02:02 GMorandi

Is it OpenAI API compatible? If it is, try this out.

Image

KevinHuSh avatar Feb 28 '25 05:02 KevinHuSh

sadly i tried this and it returned with error

GMorandi avatar Feb 28 '25 06:02 GMorandi