fix: embedding get price definition missing (#922)
This commit is contained in:
parent
0a0d63457d
commit
3a0a9e2d8f
2 changed files with 2 additions and 2 deletions
|
|
@ -379,7 +379,7 @@ class IndexingRunner:
|
|||
return {
|
||||
"total_segments": total_segments,
|
||||
"tokens": tokens,
|
||||
"total_price": '{:f}'.format(embedding_model.get_token_price(tokens)),
|
||||
"total_price": '{:f}'.format(embedding_model.calc_tokens_price(tokens)),
|
||||
"currency": embedding_model.get_currency(),
|
||||
"preview": preview_texts
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue