fix: add info log level to unpriced models message (#27693)

Change the unpriced models log to info level.

Refs https://github.com/coder/coder/pull/27678
This commit is contained in:
Susana Ferreira
2026-07-30 14:47:23 +00:00
committed by GitHub
parent a86e67d3d9
commit 7b104b6a98
+1 -1
View File
@@ -71,7 +71,7 @@ func (s *Server) resolveTokenUsageCost(ctx context.Context, intc database.AIBrid
switch {
case errors.Is(err, sql.ErrNoRows):
// Model not in the price table: record tokens but leave cost NULL.
s.logger.Warn(ctx, "no price found for model, recording token usage with NULL cost",
s.logger.Info(ctx, "no price found for model, recording token usage with NULL cost",
slog.F("provider", intc.Provider), slog.F("model", intc.Model))
if s.metrics != nil {
s.metrics.UnpricedTokenUsageRecords.WithLabelValues(intc.Provider, intc.Model).Inc()