mirror of
https://github.com/praveentcom/openproxy.git
synced 2026-07-13 23:47:18 +02:00
fix: normalize model names to lowercase in cost calculation and proxy request handling
This commit is contained in:
@@ -163,7 +163,7 @@ const server = http.createServer(async (req, res) => {
|
||||
timestamp: new Date(),
|
||||
request_method: method,
|
||||
request_path: path,
|
||||
model: requestJson?.model || "default",
|
||||
model: (requestJson?.model || "default").toLowerCase(),
|
||||
completion_tokens: usage.completion_tokens || null,
|
||||
prompt_tokens: usage.prompt_tokens || null,
|
||||
total_tokens: usage.total_tokens || null,
|
||||
|
||||
Reference in New Issue
Block a user