Rivier/ Reference/ models

Set the project's own spending limits and route names

put/models/v1/settings

Set the project's own spending limits and route names. A limit is at or below what the project may spend already; null removes it. A route name of the project's own stands on a route the project is given (as), with its own vector size or answer length. Only a signed-in person who manages the project can call this; a key reads the settings.

Before you call

Credential
Authorization: Bearer $KEY
Scope
models:write
Graphql
Mutation.modelsSettingsSet
Sdk
models.settings.set
Cli
models settings set

Request bodyapplication/json, required

  • routesobject or null
  • dailyUsdnumber or null
  • monthlyUsdnumber or null
  • dataPolicyobject or null

Responses

  • 200application/json
    Success
    • objectmodel_settingsrequired
    • dailyUsdnumber or nullrequired
    • monthlyUsdnumber or nullrequired
    • routesobjectrequired
    • choiceslist of objectrequired
      • idstringrequired
      • kindstringrequired
        One of: chat, embedding, speech.
    • dataPolicyobject or nullrequired
  • 400application/json
    The request was malformed
    • errorstringrequired
    • messagestring
  • 401application/json
    No valid credential
    • errorstringrequired
    • messagestring
  • 403application/json
    The credential lacks the scope, origin or address
    • errorstringrequired
    • messagestring
  • 429application/json
    Over the key's rate limit; see Retry-After
    • errorstringrequired
    • messagestring

This page as Markdown