@@ -48,13 +48,13 @@ def resolve(self, override: ModelSettings | None) -> ModelSettings:
4848 if override is None :
4949 return self
5050 return ModelSettings (
51- temperature = override .temperature or self .temperature ,
52- top_p = override .top_p or self .top_p ,
53- frequency_penalty = override .frequency_penalty or self .frequency_penalty ,
54- presence_penalty = override .presence_penalty or self .presence_penalty ,
55- tool_choice = override .tool_choice or self .tool_choice ,
56- parallel_tool_calls = override .parallel_tool_calls or self .parallel_tool_calls ,
57- truncation = override .truncation or self .truncation ,
58- max_tokens = override .max_tokens or self .max_tokens ,
51+ temperature = override .temperature if override . temperature is not None else self .temperature ,
52+ top_p = override .top_p if override . top_p is not None else self .top_p ,
53+ frequency_penalty = override .frequency_penalty if override . frequency_penalty is not None else self .frequency_penalty ,
54+ presence_penalty = override .presence_penalty if override . presence_penalty is not None else self .presence_penalty ,
55+ tool_choice = override .tool_choice if override . tool_choice is not None else self .tool_choice ,
56+ parallel_tool_calls = override .parallel_tool_calls if override . parallel_tool_calls is not None else self .parallel_tool_calls ,
57+ truncation = override .truncation if override . truncation is not None else self .truncation ,
58+ max_tokens = override .max_tokens if override . max_tokens is not None else self .max_tokens ,
5959 store = override .store if override .store is not None else self .store ,
6060 )
0 commit comments