lightllm icon indicating copy to clipboard operation
lightllm copied to clipboard

[feature request] add prompt styles support

Open jiacheo opened this issue 1 year ago • 4 comments

There are many different styles of prompts for different LLMs, such like openai/llama2 style (especially support SYSTEM role prompt), pure text style, ziya, etc. From the api_server.py 's parameter, we can see it just support the pure text style. Maybe it will be a good feature to support these styles.

jiacheo avatar Aug 03 '23 01:08 jiacheo

Thank you very much for your suggestion. We will support this feature very soon.

shihaobai avatar Aug 03 '23 03:08 shihaobai

Also welcome a contribution from the community, thanks!

XHPlus avatar Aug 09 '23 01:08 XHPlus

Is it possible to integrate in fastchat like vllm? https://github.com/lm-sys/FastChat/blob/main/docs/vllm_integration.md

Valdanitooooo avatar Aug 09 '23 01:08 Valdanitooooo

Hi, we have now added the /v1/chat/completions api, the usage is the same as that of openai. We use fastchat to target different model types for different styles of prompt stitching. Maybe you can give it a try.

WANDY666 avatar Sep 12 '23 03:09 WANDY666