Skip to content

Commit fa0d1d4

Browse files
committed
The backend now allows configuring cost and max tokens
1 parent d0c69ff commit fa0d1d4

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

docs/index.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ Checker Output file / Eval Input file:
107107
* NOTE: if there were transient errors during processing, the output file can be re-used as an input file and by default,
108108
only those entries which do not already have a response will get re-processed
109109

110-
onfig file:
110+
Config file:
111111

112112
* a json or hjson or yaml file containing a dictionary with the following keys
113113
* `llms`: a list of strings or dictionaries describing the LLMs to use. A dictionary can contain the following keys:
@@ -119,7 +119,11 @@ onfig file:
119119
with the actual values
120120
* `user`: the user name to use for basic authentication
121121
* `password`: the password to use for basic authentication
122-
* Any specification that is present in the corresponding provider config is overridden with the value provided in the llm config
122+
* Any specification of the above fields that is present in the corresponding provider config is overridden with the value provided in the llm config
123+
* `cost_per_prompt_token`: configure or override the cost per prompt token
124+
* `cost_per_output_token`: configure or override the cost per output token
125+
* `max_input_tokens`: configure or override the maximum number of input/prompt tokens
126+
* `max_output_tokens`: configure or override the maximum number of output tokens
123127
* `providers`: a dict with provider names as the key and a dict of provider settings as the values where each dict can contain the followign keys:
124128
* `api_key`: the API key to use for the model
125129
* `api_key_env`: the name of an environment variable containing the API key

0 commit comments

Comments
 (0)