MCPcopy Create free account
hub / github.com/microsoft/Webwright / getTokenizerSelection

Function getTokenizerSelection

assets/compare_trajectory/app.js:248–252  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

246}
247
248function getTokenizerSelection(value) {
249 const [mode, name] = String(value || 'model:o3').split(':');
250 const encoding = mode === 'model' ? MODEL_TO_ENCODING[name] || 'o200k_base' : name || 'o200k_base';
251 return { mode, name: name || 'o3', encoding };
252}
253
254async function loadEncoder(encoding) {
255 if (encodingCache.has(encoding)) {

Callers 2

tokenizerSelectionLabelFunction · 0.85
enrichTraceTokensFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected