Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed default transcription price #188

Merged
merged 1 commit into from
Apr 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ Customize the configuration by copying `.env.example` and renaming it to `.env`,
| `IGNORE_GROUP_TRANSCRIPTIONS` | If set to true, the bot will not process transcriptions in group chats | true |
| `TOKEN_PRICE` | $-price per 1000 tokens used to compute cost information in usage statistics (https://openai.com/pricing) | 0.002 |
| `IMAGE_PRICES` | A comma-separated list with 3 elements of prices for the different image sizes: "256x256", "512x512" and "1024x1024" | "0.016,0.018,0.02" |
| `TRANSCRIPTION_PRICE` | USD-price for one minute of audio transcription | 0.002 |
| `TRANSCRIPTION_PRICE` | USD-price for one minute of audio transcription | 0.006 |

Check out the [official API reference](https://platform.openai.com/docs/api-reference/chat) for more details.

Expand Down
2 changes: 1 addition & 1 deletion bot/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def main():
'group_trigger_keyword': os.environ.get('GROUP_TRIGGER_KEYWORD', ''),
'token_price': float(os.environ.get('TOKEN_PRICE', 0.002)),
'image_prices': [float(i) for i in os.environ.get('IMAGE_PRICES',"0.016,0.018,0.02").split(",")],
'transcription_price': float(os.environ.get('TOKEN_PRICE', 0.002)),
'transcription_price': float(os.environ.get('TOKEN_PRICE', 0.006)),
}

# Setup and run ChatGPT and Telegram bot
Expand Down