mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-05 02:51:07 +00:00
refactor: Refactor proxy LLM (#1064)
This commit is contained in:
@@ -13,6 +13,7 @@ BAICHUAN_DEFAULT_MODEL = "Baichuan2-Turbo-192k"
|
||||
def baichuan_generate_stream(
|
||||
model: ProxyModel, tokenizer=None, params=None, device=None, context_len=4096
|
||||
):
|
||||
# TODO: Support new Baichuan ProxyLLMClient
|
||||
url = "https://api.baichuan-ai.com/v1/chat/completions"
|
||||
|
||||
model_params = model.get_params()
|
||||
|
Reference in New Issue
Block a user