ned
1841bb58fc
do not fail if total_tokens is not set
2023-03-26 12:28:38 +02:00
ned
26322b7bd9
initial stream message replies to original message
2023-03-25 19:47:59 +01:00
ned
99d98d2048
initial stream support
2023-03-25 19:36:56 +01:00
ned
1a28b6b683
minor improvements
2023-03-25 14:53:00 +01:00
AlexHTW
be35c811c9
added admin_user_ids variable to env
...
updated functions accordingly
improved (?) stats output look
2023-03-25 00:12:14 +01:00
AlexHTW
17028b8e57
Merge branch 'main' into add-balance-function
2023-03-24 11:32:16 +01:00
ned
5d2c288789
update gpt-4 token counting
2023-03-24 00:25:08 +01:00
ned
38e372115b
update README.md
2023-03-24 00:11:22 +01:00
AlexHTW
29ecd1723c
removed balance from botcommands
2023-03-23 01:08:28 +01:00
AlexHTW
57edb16000
added grant balance and openAI usage to stats
2023-03-23 00:56:02 +01:00
AlexHTW
3b2fabd188
added functions is_admin and get_remaining_budget
2023-03-23 00:37:31 +01:00
deanxizian
e0974f80fe
Add balance inquiry function
2023-03-23 00:37:31 +01:00
“Yashar
c3c1287ca1
Remove an experimental log
2023-03-22 23:00:38 +01:00
ned
649f486fdb
Merge pull request #99 from kamil-malinski/main
...
makes bot reply to quotes of its own messages in a group
2023-03-22 21:03:51 +01:00
ned
c9ea373e5c
Merge pull request #91 from carlsverre/gpt-4-support
...
gpt-4 model support
2023-03-22 21:01:41 +01:00
“Yashar
5ea0e011d0
Add action button to inline query results and improve access validation
...
- Add 'private' to supported chat types for inline queries
- Update inline_query() to:
* Include an action button to fetch the answer
* Use callback_data to store short prompts
* Implement built-in cache for longer prompts
- Add handle_callback_inline_query() as callback query handler to:
* Read the prompt from callback_data or the built-in cache
* Fetch the answer from OpenAI
* Update the current message content with the status and answer
- Add validate_answering_possibility method to verify user access and budget
- Add process_used_tokens method to apply token usage
- Use validate_answering_possibility in image, transcribe, prompt, and inline_query handlers
- Add inline query support to is_allowed and is_within_budget methods
- Convert error_handler, split_into_chunks, is_user_in_group, and is_group_chat to static methods
- Fix lint warnings and convert unused method parameters to private
2023-03-22 20:33:36 +01:00
root
f9cb4faf19
makes bot reply to quotes of its own messages in a group
2023-03-22 12:00:05 +00:00
Carl Sverre
5e9dd9a846
added current conversation stats to /stats
2023-03-21 09:43:51 -07:00
Carl Sverre
792d9c2432
added longer context lengths and gpt-4-32k
2023-03-21 09:03:48 -07:00
Carl Sverre
b52d3ffe12
formatting
2023-03-20 17:50:12 -07:00
Carl Sverre
db6f15bc48
gpt-4 model support
2023-03-20 17:47:23 -07:00
ned
7e6720f657
Merge pull request #87 from gparrello/new-feature
...
Allow setting system content on reset
2023-03-20 22:49:16 +01:00
Gerardo Parrello
421b7212bb
add default value
2023-03-19 21:27:51 +01:00
Gerardo Parrello
a1e854a279
extend command description
2023-03-19 21:23:13 +01:00
Gerardo Parrello
7d62305444
allow content passed by system role to be customized on reset
2023-03-19 21:18:15 +01:00
ned
b7d07f5023
Update docker-compose.yml
2023-03-19 00:32:59 +01:00
ned
d768908bfb
update README.md
2023-03-19 00:30:42 +01:00
ned
ba4ba91c94
update README.md
2023-03-19 00:09:01 +01:00
ned
ea0738d967
Update publish.yaml
2023-03-19 00:00:35 +01:00
ned
a20afa67a7
Update publish.yaml
2023-03-18 23:51:12 +01:00
ned
00057732bc
Update publish.yaml
2023-03-18 23:47:18 +01:00
ned
85f52e00fa
Update publish.yaml
2023-03-18 23:31:49 +01:00
ned
8ccb2669cf
Update publish.yaml
2023-03-18 23:24:12 +01:00
ned
7cd396b1dd
Update publish.yaml
2023-03-18 23:14:51 +01:00
ned
47097d40c8
Update publish.yaml
2023-03-18 23:11:38 +01:00
ned
af3dec1bf5
use async version of openai methods
2023-03-18 23:03:56 +01:00
ned
03a317efe4
improve Dockerfile and bug fixes
2023-03-18 22:53:04 +01:00
ned
178e640e92
support python 3.9 ( fix #80 )
2023-03-18 22:49:30 +01:00
ned
256369ca90
reorganize folders
2023-03-18 22:22:55 +01:00
ned
15b1f05ea3
Merge pull request #79 from bugfloyd/fix/deps_management
...
Refactor: Replace Pipenv with requirements.txt for dependency management
2023-03-18 22:20:27 +01:00
“Yashar
ce561e68ad
fix docker mount bug
...
* update readme
2023-03-18 21:20:37 +01:00
“Yashar
677885ef49
remove pipenv & use requirements.txt
...
- remove pipenv from Dockerfile
- update the readme:
* update prerequisites
* use venv while installing from source
* update docker compose command syntax
* add a note about rebuilding docker images
2023-03-18 19:44:18 +01:00
ned
5edc7d146d
Create publish.yaml
2023-03-18 17:15:08 +01:00
ned
84bf713fcf
fix #78
2023-03-18 16:35:24 +01:00
ned
5c88bdd26c
Merge pull request #76 from n3d1117/feature/handle-responses-longer-than-telegram-message-limit
...
Handle responses longer than telegram message limit
2023-03-18 16:12:24 +01:00
ned
4cb644a6e1
added size limit to the error message
2023-03-18 16:11:59 +01:00
ned
f7bb416570
improve logging for large audio files
2023-03-18 14:58:45 +01:00
ned
13a37407cb
handle responses longer than telegram message limit
2023-03-18 13:20:10 +01:00
ned
73d200c64e
Merge pull request #72 from n3d1117/feature/proper-token-counting
...
Proper token counting using the tiktoken library
2023-03-18 00:45:11 +01:00
ned
75a47d8c38
Merge branch 'main' into feature/proper-token-counting
2023-03-18 00:44:48 +01:00