From 2e86f7ee5e46c2b41f26d9aa774f4f6721996967 Mon Sep 17 00:00:00 2001 From: Volker Stampa Date: Fri, 10 Feb 2023 18:24:04 +0100 Subject: [PATCH] Fix parameter passing in deprecated client Parameters are not nullable on API side --- aleph_alpha_client/aleph_alpha_client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aleph_alpha_client/aleph_alpha_client.py b/aleph_alpha_client/aleph_alpha_client.py index f2fdd11..0132b24 100644 --- a/aleph_alpha_client/aleph_alpha_client.py +++ b/aleph_alpha_client/aleph_alpha_client.py @@ -432,9 +432,9 @@ def complete( "sequence_penalty": sequence_penalty, "sequence_penalty_min_length": sequence_penalty_min_length, "use_multiplicative_sequence_penalty": use_multiplicative_sequence_penalty, - "completion_bias_inclusion": completion_bias_inclusion, + "completion_bias_inclusion": completion_bias_inclusion or [], "completion_bias_inclusion_first_token_only": completion_bias_inclusion_first_token_only, - "completion_bias_exclusion": completion_bias_exclusion, + "completion_bias_exclusion": completion_bias_exclusion or [], "completion_bias_exclusion_first_token_only": completion_bias_exclusion_first_token_only, }