fix: Use is not None instead of != None for None checks. (#5687)

This commit is contained in:
vzed
2025-04-26 22:26:57 -04:00
committed by GitHub
parent a21ef36352
commit 094891c01a
2 changed files with 3 additions and 3 deletions

View File

@@ -113,7 +113,7 @@ def completion_template_exists(template_name: str) -> bool:
def is_completion_template_defined() -> bool:
global completion_template_name
return completion_template_name != None
return completion_template_name is not None
def generate_completion_prompt_from_request(request: ChatCompletionRequest) -> str: