mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-10 11:26:52 +08:00
fix: embedding get price definition missing (#922)
This commit is contained in:
@@ -50,7 +50,7 @@ class BaseEmbedding(BaseProviderModel):
|
||||
logger.debug(f"model: {self.name} price_config: {self._price_config}")
|
||||
return self._price_config
|
||||
|
||||
def calc_tokens_price(self, tokens:int) -> decimal.Decimal:
|
||||
def calc_tokens_price(self, tokens: int) -> decimal.Decimal:
|
||||
"""
|
||||
calc tokens total price.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user