Wykres commitów

185 Commity (66be5527619deef73aeb66da6e9b2cc206346349)

Autor SHA1 Wiadomość Data
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
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
Travis Fischer 8af7e8311d 📣 2023-02-13 01:43:47 -06:00
Travis Fischer d0fba024aa 🎟 2023-02-13 00:42:11 -06:00
Travis Fischer 1777c4551d feat: add support for using a reverse proxy to use the official ChatGPT models 2023-02-12 23:36:42 -06:00
Travis Fischer 34c886b5c4 🥁 2023-02-12 22:53:43 -06:00
Travis Fischer 0f0c12e275 feat: switch back to text-chat-davinci-002-20221122 2023-02-12 22:53:43 -06:00
Travis Fischer c682cd3fbc feat: switch to text-davinci-003 2023-02-07 16:02:25 -06:00
Travis Fischer 78bd4fff43 fix: add catch for fetchSSE promise rejection 2023-02-07 03:47:09 -06:00
Michael Di Prisco 47e26cc7a2
chore: fixing param stop being array instead of string 2023-02-04 14:54:23 +01:00
Michael Di Prisco 329e076189
chore: moving from im_end to completion params
As we allow the constructor to define completionParams, it would be better to allow devs using the library to use the specified stop token.
As of right now, the library allows such stop to be passed but it isn't considered in the class itself.
2023-02-04 09:44:51 +01:00
Travis Fischer bc79490bf2 feat: update chatgpt model 2023-02-02 23:33:57 -06:00
Travis Fischer 1c5d0a0e53 feat: replace chat model with text-davinci-003 as temporary workaround 2023-02-02 14:11:39 -06:00
Travis Fischer dc4997d511 fix: completionParams 2023-02-02 13:59:08 -06:00
Travis Fischer 82e89b3237 fix: completionParams should be partial optional 2023-02-02 13:58:02 -06:00
Travis Fischer 9d49e78415 feat: add more config params and docs 2023-02-01 18:01:34 -06:00
Travis Fischer b20fa74793 fix: conversationId undefined 2023-02-01 12:35:04 -06:00
Travis Fischer 531e180e3f feat: add persistence demo and keyv support 2023-02-01 04:48:36 -06:00