Skip to content

Commit

Permalink
#51 logged more context
Browse files Browse the repository at this point in the history
  • Loading branch information
roma-glushko committed Jan 1, 2024
1 parent 7a0a4e4 commit 83e4a78
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions pkg/routers/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,19 @@ func (r *LangRouter) BuildModels(modelConfigs []providers.LangModelConfig) error

for _, modelConfig := range modelConfigs {
if !modelConfig.Enabled {
r.telemetry.Logger.Info("model is disabled, skipping", zap.String("modelID", modelConfig.ID))
r.telemetry.Logger.Info(
"model is disabled, skipping",
zap.String("router", r.config.ID),
zap.String("model", modelConfig.ID),
)
continue
}

r.telemetry.Logger.Debug("init lang model", zap.String("modelID", modelConfig.ID))
r.telemetry.Logger.Debug(
"init lang model",
zap.String("router", r.config.ID),
zap.String("model", modelConfig.ID),
)

model, err := modelConfig.ToModel(r.telemetry)
if err != nil {
Expand Down

0 comments on commit 83e4a78

Please sign in to comment.