Skip to main content

Lower your costs

The Improve screen reads the traffic of your project, and lists what to change. Each finding shows the numbers that it comes from.

Read the findings​

Open Improve in the console. The readouts on top count the findings:

ReadoutShows
FindingsAll findings
Worth doing firstThe findings of high severity
Worth a lookThe other findings
Worth fixingThe estimated saving of each month, in dollars, when Proxium can compute one

What to change lists the findings, high severity first. There are three kinds:

KindProxium flagsSeverity
CostOne of your largest spend lines this month, at least $10, when the same vendor has a chat model that costs less than 70% of itHigh from $25 of estimated saving each month
CacheA project with at least 100 calls and $5 of spend this month, where the cache saved less than 2%High from $20 of estimated saving
ReliabilityA vendor with at least 20 attempts in the last 7 days, where 15% or more failedHigh from 50% failed

If the list says Nothing to flag, your traffic has none of these patterns.

Move traffic to a cheaper model​

For a cost finding:

  1. Read the cheaper model that the finding names, and its price.
  2. Open Routing › Model catalog, and compare Cost, per Mtok of the two models.
  3. Test the cheaper model on a few real prompts of the app.
  4. In Text routing, select Change on the tier of the app, and put the cheaper model first.
  5. Select Save for this project.

Your apps need no change, because they send the tier name. To move one app only, add a rule for that app. See Route requests to models.

Let the cache answer repeated calls​

For a cache finding: the cache answers only a request that is the same, field for field, as an earlier one. These changes give more hits:

ChangeReason
Keep the system prompt the same on each callA changed character is a new request
Send the same temperature and tools each timeBoth fields are part of the cache key
Put a date or an id in a message only when the answer depends on itEach new value is a new request

Overview › Saved by cache shows what the cache saved. The response cache explains the key.

Fix a vendor that fails often​

For a reliability finding:

  1. Open Requests, and read What failed and Who is unreliable for that vendor.
  2. If the reason is a rejected key or a used quota, fix the key at the vendor, or add it again on Providers.
  3. Else, move the vendor down in your chains, so that a better vendor answers first.

Each failed attempt adds time before the answer. Debug a failed call shows how to read the attempts.