Code work, text unreliable, 128 is not the maximum size. I don’t know why the Bing api test processes your text without any problems.
How to get to these findings? Copy your favorite implementation from here or use Postman (yes, it works). Using Post or Get does not matter for the size of the text.
Try with the text “Bill Gatas” formatted with% 20 or +, it has the same result as in the example. Confirmation of the work of your code.
Then try the following text: more than 128 characters (162). And he must return the result.
% 20is% 20a% 20long% 20Bill% 20Gatas% 20.Bill% 20Gatas% 20.Bill% 20Gatas% 20.Bill% 20Gatas% 20.Bill% 20Gatas% 20.Bill% 20Gatas% 20.Bill% 20Gatas% 20. % 20.Bill% 20Gatas% 20. % 20.Bill% 20
All that this has is an empty result. (try adding gatas to the end). Now the spec says the maximum value is 1500 characters in the URL, and "The combined length of the text string, preContextText and postContextText cannot exceed 10,000 characters." And as indicated here , the spell was designed for about 9 tokens.
So, whatever the Bing test website does, this is probably some kind of batch job. Or they got an evidence-based implementation for the job.
- (Which I tried, same result, not tokens)
- (And again I tried all this for v7, the same result, without tokens)
source share