fix: null handling

deploy/dev
stream 9 months ago
parent 1523e1db74
commit 796dc65813

@ -528,7 +528,7 @@ class LLMGenerator:
if CURRENT in injected_instruction:
injected_instruction = injected_instruction.replace(CURRENT, current)
if ERROR_MESSAGE in injected_instruction:
injected_instruction = injected_instruction.replace(ERROR_MESSAGE, error_message)
injected_instruction = injected_instruction.replace(ERROR_MESSAGE, error_message or "null")
model_instance = ModelManager().get_model_instance(
tenant_id = tenant_id,
model_type=ModelType.LLM,

Loading…
Cancel
Save