Fix style
This commit is contained in:
parent
d8591dc703
commit
6db75183ff
|
@ -603,9 +603,12 @@ class OpenAIServerModel(Model):
|
|||
tools_to_call_from: Optional[List[Tool]] = None,
|
||||
) -> ChatMessage:
|
||||
messages = get_clean_message_list(
|
||||
messages, role_conversions=(
|
||||
self.custom_role_conversions if self.custom_role_conversions else tool_role_conversions
|
||||
)
|
||||
messages,
|
||||
role_conversions=(
|
||||
self.custom_role_conversions
|
||||
if self.custom_role_conversions
|
||||
else tool_role_conversions
|
||||
),
|
||||
)
|
||||
if tools_to_call_from:
|
||||
response = self.client.chat.completions.create(
|
||||
|
|
Loading…
Reference in New Issue