|
dolibarr 25.0.0-alpha
|
AI Request Log Viewer with Payload Inspection. More...
Go to the source code of this file.
Functions | |
| aiModelPrice ($model) | |
| Price (in/out, per 1M tokens, in the admin's own currency and contract) for a model, from the JSON map AI_MODEL_PRICES_JSON, e.g. | |
AI Request Log Viewer with Payload Inspection.
Definition in file log_viewer.php.
| aiModelPrice | ( | $model | ) |
Price (in/out, per 1M tokens, in the admin's own currency and contract) for a model, from the JSON map AI_MODEL_PRICES_JSON, e.g.
{"gemini-2.5-flash":{"in":0.30,"out":2.50},"default":{"in":1,"out":3}} Cost is computed at DISPLAY time, so a price update re-prices the history.
| string | $model | Model id as logged |
Definition at line 252 of file log_viewer.php.
References getDolGlobalString().