immosquare-yaml 0.1.24 → 0.1.25
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/immosquare-yaml/translate.rb +1 -1
- data/lib/immosquare-yaml/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4404e071795297a64e93c211cf7f45794894b940b2f14c02b96a9771a9fc5740
|
4
|
+
data.tar.gz: bfc66cb17d38c5dce224adde7c97902c7ae61d68687e476d27c40a19a61f420f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e9e26bc45f59275a765ace0f1cffde57b570d52f6ee49b973c5d861a7a3d0ec13730255e364aed902040875aa0a2435333489a377dbed6f4c10601bc44c4c4d
|
7
|
+
data.tar.gz: 91a45dfe6c5e8debd0157a6aa66e78d1caea336a1695203051dfa7577df7a8343a47a859b8560ca23f837cdf8c4942816e578ed25d8deca782360f01c0384dea
|
@@ -313,7 +313,7 @@ module ImmosquareYaml
|
|
313
313
|
## We calculate the estimate price of the call
|
314
314
|
##============================================================##
|
315
315
|
input_price = response["usage"]["prompt_tokens"] * (model[:input_price_for_1m] / 1_000_000)
|
316
|
-
output_price = response["usage"]["completion_tokens"] * (model[:
|
316
|
+
output_price = response["usage"]["completion_tokens"] * (model[:output_price_for_1m] / 1_000_000)
|
317
317
|
price = input_price + output_price
|
318
318
|
puts("Estimate price => #{input_price.round(3)} + #{output_price.round(3)} = #{price.round(3)} USD")
|
319
319
|
|