Update python.py

add-tracing
Meng Zhang 2023-04-14 02:21:48 +08:00 committed by GitHub
parent 04e2af3790
commit ccef02f48d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ class PythonModelService:
)
def generate(self, request: CompletionRequest) -> List[Choice]:
preset = LanguagePresets.get(data.language, None)
preset = LanguagePresets.get(request.language, None)
if preset is None:
return []