ragflow icon indicating copy to clipboard operation
ragflow copied to clipboard

[Bug]: Help adding openAI API compatible external model

Open KevinHuSh opened this issue 11 months ago • 1 comments

Discussed in https://github.com/orgs/infiniflow/discussions/4592

Originally posted by jb-dul January 23, 2025 Hello folks, I would need some help adding an openAI-API compatible external model. Access to this model with a test curl request actually works.

I went through this :

essai ajout openai API dans ragflow

And I got this error :

erreur ajout openai

It looks like ragflow adds a suffix to the model name, something like "__OpenAI-API" There might be a simple way to remove that suffix ? Thanks a lot for your help.

KevinHuSh avatar Feb 10 '25 03:02 KevinHuSh

I updated api/apps/llm_app.py, it is passed. But there is still one issue that has not been resolved, the suffix needed be removed. Image

KlayerCong avatar Feb 21 '25 08:02 KlayerCong