Skip to content

Commit 8709ecd

Browse files
committed
deleted debug logging
Signed-off-by: Xiyue Yu <xiyue@google.com>
1 parent b4e0120 commit 8709ecd

2 files changed

Lines changed: 2 additions & 13 deletions

File tree

pkg/epp/framework/plugins/requestcontrol/dataproducer/tokenizer/estimate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ func (b estimateBackend) appendChatMessage(ctx context.Context, out []byte, feat
224224
case "image_url":
225225
out, features = appendMMAsset(out, features, fwkrh.ModalityImage, block.ImageURL.URL, b.img.placeholderCount(block.ImageURL.URL))
226226
case "video_url":
227-
out, features = appendMMAsset(out, features, fwkrh.ModalityVideo, block.VideoURL.URL, b.vid.placeholderCount(ctx, meta.video))
227+
out, features = appendMMAsset(out, features, fwkrh.ModalityVideo, block.VideoURL.URL, b.vid.placeholderCount(meta.video))
228228
case "input_audio", "audio_url":
229229
data := block.InputAudio.Data + block.InputAudio.Format
230230
out, features = appendMMAsset(out, features, fwkrh.ModalityAudio, data, assetPlaceholderCount(len(data)))

pkg/epp/framework/plugins/requestcontrol/dataproducer/tokenizer/mm_estimate.go

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ package tokenizer
1818

1919
import (
2020
"bytes"
21-
"context"
2221
"encoding/base64"
2322
"image"
2423
"strings"
@@ -28,9 +27,6 @@ import (
2827
_ "image/jpeg"
2928
_ "image/png"
3029

31-
"sigs.k8s.io/controller-runtime/pkg/log"
32-
33-
logutil "github.com/llm-d/llm-d-router/pkg/common/observability/logging"
3430
fwkrh "github.com/llm-d/llm-d-router/pkg/epp/framework/interface/requesthandling"
3531
)
3632

@@ -256,21 +252,14 @@ func newVideoEstimator(cfg *estimateConfig) videoEstimator {
256252

257253
// placeholderCount estimates placeholder tokens for a video from its request
258254
// metadata. Always >= 1 so every video carries weight.
259-
func (e videoEstimator) placeholderCount(ctx context.Context, meta videoMetadata) int {
255+
func (e videoEstimator) placeholderCount(meta videoMetadata) int {
260256
tokens := e.frameCount(meta) * e.tokensPerFrame(meta)
261257
if e.maxVideoTokens > 0 && tokens > e.maxVideoTokens {
262258
tokens = e.maxVideoTokens
263259
}
264260
if tokens < 1 {
265261
tokens = 1
266262
}
267-
log.FromContext(ctx).V(logutil.DEFAULT).Info("video placeholder estimation",
268-
"duration", meta.duration,
269-
"fps", meta.fps,
270-
"width", meta.width,
271-
"height", meta.height,
272-
"placeholderCount", tokens,
273-
)
274263
return tokens
275264
}
276265

0 commit comments

Comments
 (0)