Skip to content

Commit c84bd83

Browse files
authored
fix: Remove all_special_tokens_extended for transformers v5 compatibility in OpenAI frontend (#8817)
1 parent 6328853 commit c84bd83

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

python/openai/openai_frontend/engine/utils/tokenizer.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2024-2025, NVIDIA CORPORATION. All rights reserved.
1+
# Copyright (c) 2024-2026, NVIDIA CORPORATION. All rights reserved.
22
#
33
# Redistribution and use in source and binary forms, with or without
44
# modification, are permitted provided that the following conditions
@@ -47,7 +47,6 @@ def get_cached_tokenizer(
4747
function caches these properties for faster access."""
4848

4949
tokenizer_all_special_ids = set(tokenizer.all_special_ids)
50-
tokenizer_all_special_tokens_extended = tokenizer.all_special_tokens_extended
5150
tokenizer_all_special_tokens = set(tokenizer.all_special_tokens)
5251
tokenizer_len = len(tokenizer)
5352

@@ -60,10 +59,6 @@ def all_special_ids(self):
6059
def all_special_tokens(self):
6160
return tokenizer_all_special_tokens
6261

63-
@property
64-
def all_special_tokens_extended(self):
65-
return tokenizer_all_special_tokens_extended
66-
6762
def __len__(self):
6863
return tokenizer_len
6964

0 commit comments

Comments
 (0)