mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-07-23 20:26:15 +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
|
||||
default_error_message = f"{model_name} LLM is not supported"
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user