From f5fb1ee66607d5f015988b1248ee022a4e04108c Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Fri, 15 Sep 2023 20:16:30 -0700 Subject: [PATCH] Change a comment --- extensions/openai/defaults.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/extensions/openai/defaults.py b/extensions/openai/defaults.py index 88a1aaac..7bc5ab2a 100644 --- a/extensions/openai/defaults.py +++ b/extensions/openai/defaults.py @@ -50,10 +50,11 @@ default_req_params = { def get_default_req_params(): return copy.deepcopy(default_req_params) -# little helper to get defaults if arg is present but None and should be the same type as default. - def default(dic, key, default): + ''' + little helper to get defaults if arg is present but None and should be the same type as default. + ''' val = dic.get(key, default) if not isinstance(val, type(default)): # maybe it's just something like 1 instead of 1.0