Travis Fischer
8388017963
fix: apiOrg
2023-04-02 14:37:19 -05:00
Travis Fischer
07dcc5df31
♌
2023-04-02 11:51:21 -05:00
Travis Fischer
c0c2e716ea
Merge pull request #431 from sighingnow/fix-error-handling
2023-04-02 11:47:40 -05:00
Travis Fischer
6c309ce365
🐁
2023-04-02 11:33:54 -05:00
Travis Fischer
8ad7ba9a1d
Merge pull request #505 from 189/feat/conversationId
2023-04-02 11:32:17 -05:00
Travis Fischer
3f5d8e6595
🏎
2023-04-02 11:30:44 -05:00
Travis Fischer
81caf0ba11
Merge branch 'main' into fix/defer-save
2023-04-02 11:29:43 -05:00
Travis Fischer
0f966dc402
chore: minor fixes
2023-04-02 11:27:20 -05:00
Travis Fischer
db6e5941ab
Merge pull request #507 from alxmiron/tokenize-response
2023-04-02 11:23:00 -05:00
阿森
79a9d50ec0
Update chatgpt-api.ts
2023-03-31 15:32:37 +08:00
阿森
52d3918255
feat: support multiple organizations
2023-03-31 15:29:07 +08:00
Oleksii Myronenko
7cd6e06bdd
#477 Mark tokens as estimated
2023-03-29 23:48:50 +03:00
Oleksii Myronenko
dd6b457932
#477 Estimate tokens usage with streaming completions
2023-03-29 23:34:06 +03:00
wangshangwen
fa53d8606d
feat: support conversationID for ChatGPTAPI
2023-03-28 14:19:20 +08:00
wangshangwen
44a4a9121e
fix: defer saving new message util got response from openAI
2023-03-28 12:00:12 +08:00
Travis Fischer
e21126e4e4
feat: add support for completionParams to sendMessage
2023-03-15 17:59:43 -05:00
Travis Fischer
5fef0f6ead
Merge pull request #464 from adi6409/main
2023-03-12 03:48:24 -05:00
Travis Fischer
c4ffe539a4
feat: update ChatGPTUnofficialProxyAPI to new default proxy
2023-03-11 05:07:49 -06:00
Adi Stroianu
e16296d471
moved /v1 to the default base url, to enable support for pawan's free api.
2023-03-10 23:57:17 +02:00
Travis Fischer
874248d959
chore: simplify some code
2023-03-09 12:41:02 -06:00
Travis Fischer
a9b0baeec6
Merge branch 'main' into main
2023-03-09 12:35:09 -06:00
yi-ge
8f6ee88f22
to: Allow the user string to be empty to get the remaining information
2023-03-10 00:29:57 +08:00
yi-ge
b72727d174
fix: last detail lost
2023-03-09 23:42:00 +08:00
野声
d9cdf1563b
fix: count prompt token error
2023-03-09 14:55:50 +08:00
Travis Fischer
34727e0edc
fix: set maxModelTokens to 4000 to be conservative and avoid limits
2023-03-07 01:46:37 -06:00
Tao He
452a61eb1b
Handle possible token expired errors
...
Signed-off-by: Tao He <sighingnow@gmail.com>
2023-03-04 21:27:37 +08:00
Yule Hou
dc8bcdee20
fix: use official system message by default
...
Fixing a typo in the default system message which sometimes causes
weird problems, including failure to retrieve certain information.
Additionally, using the official knowledge cutoff seems to help.
2023-03-04 00:04:39 +08:00
Travis Fischer
48cb94473d
chore: update ChatGPTAPI constructor init for typedoc
2023-03-02 17:24:49 -06:00
Travis Fischer
ad3d1f9951
Merge pull request #422 from NoodleOfDeath/main
2023-03-02 17:22:25 -06:00
Travis Fischer
a733b29861
feat: switch tokenizer to use cl100k_base encoding for gpt-3.5-turbo model
2023-03-02 17:13:21 -06:00
NoodleOfDeath
1a0b570dc9
feat: exports init options for external use
2023-03-02 13:19:45 -05:00
Travis Fischer
1e4ddd6b84
fix: openai types
2023-03-01 23:32:13 -06:00
Travis Fischer
0a70f13ee4
feat: switch default model to non-date version
2023-03-01 23:25:08 -06:00
Travis Fischer
8ea449f26f
fix: bugfix
2023-03-01 20:51:07 -06:00
Travis Fischer
271ed9d753
feat: add support for official OpenAI chat completions API
2023-03-01 20:49:20 -06:00
Travis Fischer
8e26eb437f
🌑
2023-02-28 20:45:57 -06:00
Travis Fischer
e3ee7272da
fix: tokenizer special tokens
2023-02-28 20:44:48 -06:00
Travis Fischer
539aa6d45c
feat: check for invalid conversationId and parentMessageId
2023-02-28 04:21:30 -06:00
Travis Fischer
f2a66f83ce
⚒
2023-02-28 04:02:46 -06:00
Travis Fischer
16b29b6f17
Merge pull request #387 from gencay/patch-1
2023-02-28 04:00:17 -06:00
Ali Gençay
a3e05c2b70
Write the underlying exception details to streamed response
...
Currently, when stream is enabled the `fetchSSE` isn't returning the api response details.
2023-02-23 04:14:08 -08:00
Travis Fischer
a51ecdb2cd
feat: switch to rust wasm port of tiktoken tokenizer
2023-02-23 00:30:40 -06:00
Jay Fong
f0ce92559e
fix(ChatGPTUnofficialProxyAPI): pass fetch
2023-02-20 16:51:20 +00:00
Travis Fischer
d9c307cc18
feat: improve CLI and add to readme
2023-02-19 06:17:26 -06:00
Travis Fischer
1224e0cb2e
fix: fix cli build => ts
2023-02-19 04:39:49 -06:00
Travis Fischer
d8eeb1a736
feat: switch from gpt-3-encoder to gpt3-tokenizer
2023-02-19 03:48:06 -06:00
Travis Fischer
6d81552509
feat: add ChatGPTUnofficialProxyAPI
2023-02-19 01:56:34 -06:00
hvqzao
6f17b5946e
Log to console only in debug mode
2023-02-15 18:42:42 +01:00
Travis Fischer
1bffd5e92a
feat: add ability to override global "fetch"
2023-02-14 00:30:06 -06:00
Travis Fischer
d621fb7c45
feat: remove reverse proxy URL from demo
2023-02-14 00:18:21 -06:00