mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-07-27 05:47:47 +00:00
fix: default proxyllm generator function (#971)
This commit is contained in:
parent
0c46c339ca
commit
048fb6c402
@ -34,7 +34,7 @@ def proxyllm_generate_stream(
|
|||||||
model_name = model_params.model_name
|
model_name = model_params.model_name
|
||||||
default_error_message = f"{model_name} LLM is not supported"
|
default_error_message = f"{model_name} LLM is not supported"
|
||||||
generator_function = generator_mapping.get(
|
generator_function = generator_mapping.get(
|
||||||
model_name, lambda: default_error_message
|
model_name, lambda *args: [default_error_message]
|
||||||
)
|
)
|
||||||
|
|
||||||
yield from generator_function(model, tokenizer, params, device, context_len)
|
yield from generator_function(model, tokenizer, params, device, context_len)
|
||||||
|
Loading…
Reference in New Issue
Block a user