mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user