FastChat icon indicating copy to clipboard operation
FastChat copied to clipboard

How do you consider the 'top_k' parameter when using openai_api_server to start?

Open garyyang85 opened this issue 1 year ago • 0 comments

I would like to try 'top_k' in my scenario to see if anything different in the output, but seems the openai invoke method does not support this parameter. https://platform.openai.com/docs/api-reference/chat/create

I can find the logic to handle 'top_k' in https://github.com/lm-sys/FastChat/blob/main/fastchat/serve/openai_api_server.py, so I am wondering if fastchat support any other ways to use this parameter?

Many thanks for any suggestions!

garyyang85 avatar May 07 '24 03:05 garyyang85