You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Notes: For this small dataset, demos neither help nor hurt. For larger flows, compile demos from your real tasks.
139
139
140
140
### Cost & Tokens
141
-
- The agent aggregates token counts and cost (when available). If provider usage isn’t exposed, it estimates tokens from prompts/outputs and computes cost using env prices.
141
+
- The agent aggregates token counts and cost. If provider usage isn’t exposed, it estimates tokens from prompts/outputs and computes cost using prices.
142
142
- Set env prices for OpenAI models (USD per 1K tokens):
143
143
```bash
144
144
export OPENAI_INPUT_PRICE_PER_1K=0.005 # example
145
145
export OPENAI_OUTPUT_PRICE_PER_1K=0.015 # example
146
146
```
147
-
The eval script will include `avg_cost_usd`. Defaults to 0 if prices aren’t set.
147
+
Defaults: for OpenAI models, built‑in prices are used if env isn’t set (best‑effort):
148
+
- gpt-4o-mini: $0.00015 in / $0.0006 out per 1K tokens
149
+
- gpt-4o (and 4.1): $0.005 in / $0.015 out per 1K tokens
150
+
You can override via the env vars above. Evals print `avg_cost_usd`.
148
151
149
152
## Optimize (Teleprompting)
150
153
- Compile optimized few-shot demos for the OpenAI `PlanWithTools` planner and save to JSON:
0 commit comments