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. These are the kinds:

KindProxium flagsSeverity
CostOne of your largest spend lines this month, when the same vendor has a chat model that costs much lessHigh when the saving is large
CacheA project with real traffic this month, where the cache saved littleHigh when the saving is large
ReliabilityA vendor where many recent attempts failedHigh when most of them failed
Retired modelA model that your failover policy retired recently, with the last failureHigh while it is retired
Retired vendorA vendor that your failover policy retired recently: no credits, a rejected key, or failed calls across its modelsHigh while it is retired
Unknown modelAn app that asks for a model name that the vendor does not list, with its recent calls and the model that answered themHigh

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.

Fix a retired model, a retired vendor or an unknown model​

For a retired model finding: remove the model from the tiers that name it on Routing, or replace it with another model. Proxium does not change your tiers.

For a retired vendor finding, the fix depends on the reason:

  • No credits: add credits at the vendor.
  • A rejected key: replace the key on Providers.
  • Failed calls: check the status of the vendor, or move its models down your tiers.

For an unknown model finding: fix the model name in the code of the app that the finding names. Or, to keep the name, make it a tier on Routing. Until you fix it, each call sends the name to the vendor first, until your failover policy retires it. See Retire a model or a vendor.