ragflow icon indicating copy to clipboard operation
ragflow copied to clipboard

[Bug]: Cannot use Chat API in other apps, such as autogen

Open zsp0901 opened this issue 1 year ago • 3 comments

Is there an existing issue for the same bug?

  • [X] I have checked the existing issues.

Branch name

main

Commit ID

commit 0a7654c747082c512e7ac39ec1fc967a943957b3

Other environment information

No response

Actual behavior

I have already setup everything in ragflow: 2024-10-07 184704

Then I want import the Chat API as a model to use in Autogen studio, error occurs: 2024-10-07 185236

It failed no matter I used http://139.xxx.xxx.xxx:5000/v1/api/,http://139.xxx.xxx.xxx:5000/v1/ or http://139.xxx.xxx.xxx:5000/v1/api/completions.

I also try to use FastAPI to make a proxy, it always failed.

Isn't ragflow API the openai-compatible API?

Expected behavior

No response

Steps to reproduce

non

Additional information

No response

zsp0901 avatar Oct 07 '24 10:10 zsp0901

No, it's not. Checkout this.

KevinHuSh avatar Oct 08 '24 00:10 KevinHuSh

No, it's not. Checkout this.

Could you please tell me more? I know litter about API.

For example, which type listed below should I adopt? If none of them is right, how should I utilize the API from Ragflow in AutoGen? Many thanks!

image

zsp0901 avatar Oct 08 '24 13:10 zsp0901

API of RAGFlow has its own protocols. It can be used for generation tasks.

KevinHuSh avatar Oct 09 '24 02:10 KevinHuSh