mirror of
https://github.com/aljazceru/chatgpt-telegram-bot.git
synced 2025-12-21 14:44:50 +01:00
linked budget manual in README
This commit is contained in:
@@ -71,7 +71,7 @@ Customize the configuration by copying `.env.example` and renaming it to `.env`,
|
|||||||
| `TEMPERATURE` | Number between 0 and 2. Higher values will make the output more random | 1.0 |
|
| `TEMPERATURE` | Number between 0 and 2. Higher values will make the output more random | 1.0 |
|
||||||
| `PRESENCE_PENALTY` | Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far | 0 |
|
| `PRESENCE_PENALTY` | Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far | 0 |
|
||||||
| `FREQUENCY_PENALTY` | Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far | 0 |
|
| `FREQUENCY_PENALTY` | Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far | 0 |
|
||||||
| `IMAGE_SIZE` | The DALL·E generated image size. Allowed values: `256x256`, `512x512` or `1024x1024` | `512x512` |
|
| `IMAGE_SIZE` | The DALL·E generated image size. Allowed values: "256x256", "512x512" or "1024x1024" | "512x512" |
|
||||||
| `GROUP_TRIGGER_KEYWORD` | If set, the bot in group chats will only respond to messages that start with this keyword | "" |
|
| `GROUP_TRIGGER_KEYWORD` | If set, the bot in group chats will only respond to messages that start with this keyword | "" |
|
||||||
| `IGNORE_GROUP_TRANSCRIPTIONS` | If set to true, the bot will not process transcriptions in group chats | true |
|
| `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 |
|
| `TOKEN_PRICE` | $-price per 1000 tokens used to compute cost information in usage statistics (https://openai.com/pricing) | 0.002 |
|
||||||
@@ -79,6 +79,7 @@ Customize the configuration by copying `.env.example` and renaming it to `.env`,
|
|||||||
| `TRANSCRIPTION_PRICE` | USD-price for one minute of audio transcription | 0.006 |
|
| `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.
|
Check out the [official API reference](https://platform.openai.com/docs/api-reference/chat) for more details.
|
||||||
|
Check out our [Budget Manual](https://github.com/n3d1117/chatgpt-telegram-bot/discussions/184) for possible budget configurations.
|
||||||
|
|
||||||
### Installing
|
### Installing
|
||||||
Clone the repository and navigate to the project directory:
|
Clone the repository and navigate to the project directory:
|
||||||
|
|||||||
@@ -672,7 +672,7 @@ class ChatGPTTelegramBot:
|
|||||||
if self.config['allowed_user_ids'] == '*':
|
if self.config['allowed_user_ids'] == '*':
|
||||||
# same budget for all users, use value in first position of budget list
|
# same budget for all users, use value in first position of budget list
|
||||||
if len(user_budgets) > 1:
|
if len(user_budgets) > 1:
|
||||||
logging.warning('multiple values for budgets set with unrestricted user list'
|
logging.warning('multiple values for budgets set with unrestricted user list '
|
||||||
'only the first value is used as budget for everyone.')
|
'only the first value is used as budget for everyone.')
|
||||||
return float(user_budgets[0])
|
return float(user_budgets[0])
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user