Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 6, 2025
1 parent d237c9c commit 75d61da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/litserve/specs/openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ def validate_chat_message(self, obj):
def _encode_response(self, output: Union[Dict[str, str], List[Dict[str, str]]]) -> Dict:
logger.debug(output)
if output is None:
message = {"role": "assistant", "content": None}
message = {"role": "assistant", "content": None}
elif isinstance(output, str):
message = {"role": "assistant", "content": output}
elif self.validate_chat_message(output):
Expand Down

0 comments on commit 75d61da

Please sign in to comment.