Skip to content

Commit

Permalink
chore: update only 1 database
Browse files Browse the repository at this point in the history
  • Loading branch information
PandorasActorMS committed Jan 7, 2025
1 parent 84a5e66 commit 09dd8d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions private/app/php/stream-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function get_tokens($data){
$completion_tokens = $json['usage']['completion_tokens'];
$total_tokens = $json['usage']['total_tokens'];

update_total_tokens($prompt_tokens, $completion_tokens, $total_tokens);
//update_total_tokens($prompt_tokens, $completion_tokens, $total_tokens);
update_separated_token($prompt_tokens, $completion_tokens, $total_tokens);
}
unset($jsonstring);
Expand Down Expand Up @@ -187,7 +187,7 @@ function check_token_limit(){

$host = getenv("DB_HOST");
$db = getenv("DB_DB");
$table = getenv('DB_TABLE');
$table = getenv('DB_TABLE_SEPERATED');
$user = getenv("DB_USER");
$pass = getenv("DB_PASS");
$port = getenv("DB_PORT");
Expand Down

0 comments on commit 09dd8d8

Please sign in to comment.