Commit Graph

38 Commits

Author SHA1 Message Date
ee9da49f70 refac: models newChatStore 2024-10-15 10:34:35 +08:00
f0f040c42c use @ import alias
All checks were successful
Build static content / build (push) Successful in 10m51s
2024-10-14 18:09:07 +08:00
370a680d94 update model list
- add gpt-4o-mini
- remove EOL models
- set default model to gpt-4o-mini
2024-07-19 09:34:22 +08:00
74b60b4e95 fix: logprobs in vision model not permit 2024-02-24 09:47:44 +08:00
c9c51a85cf support logprobs 2024-02-23 19:00:20 +08:00
54abddc517 skip when choices is empty 2023-12-22 17:14:28 +08:00
54f2843677 user can send message without defining an api key 2023-12-22 17:11:11 +08:00
09d43ed566 fix: tools call and function call 2023-12-14 17:35:31 +08:00
647098ef83 support json_mode 2023-11-27 11:42:56 +08:00
f3953693fd save whisper / tts / image gen api 2023-11-11 13:16:55 +08:00
33f4ab7b42 fix copy render msg 2023-11-10 17:12:57 +08:00
626e7780f8 fix tool-call streaming mode 2023-11-10 12:22:28 +08:00
856976c03c fix fetch resp msg 2023-11-10 11:29:18 +08:00
e7e3e693ef tool call WIP 2023-11-09 17:48:04 +08:00
81660d563f add support for tool call (function call) 2023-11-09 17:04:27 +08:00
1033298187 fix: edit msg token length 2023-11-09 13:16:13 +08:00
0c8938dea5 better cound token 2023-11-08 19:40:38 +08:00
0d27de52a3 change vision image_url format 2023-11-08 19:21:56 +08:00
ed090136ac add param max_gen_tokens 2023-11-08 16:16:15 +08:00
9142665585 support message detail interface 2023-11-08 15:55:52 +08:00
6bf6fb9455 support enable/disable temperature and top_p 2023-11-03 14:01:16 +08:00
e1172600c1 fix: ignore empty system message 2023-10-24 22:53:31 +08:00
598575f29b Rewrite stream parse logic 2023-09-15 17:54:36 +08:00
49eae4a2b9 fix: parse stream error 2023-09-15 17:09:39 +08:00
968e6602f7 async generator stream 2023-08-10 18:36:29 +08:00
c90e32d74f change default temperature from 1.0 to 0.7
When developing prompt, it is generally better use a lower temperature
from beginning
2023-07-27 11:32:36 +08:00
8d62bfae77 fix systemMessage token 2023-07-20 11:37:10 +08:00
ab5eab1a9b chatgpt.ts add role type check 2023-07-13 18:18:08 +08:00
32bf692386 support example_user and example_assistant 2023-07-12 00:40:03 +08:00
ecfa32f75e chatgpt.ts support more args 2023-07-07 11:06:30 +08:00
8c049c9ee9 handle response error 2023-04-03 17:46:07 +08:00
07885c681c show response model name 2023-03-30 13:39:19 +08:00
2d7edeb5b0 support gpt-4 2023-03-29 12:45:59 +08:00
7c34379ecb calculate token and forget some message 2023-03-28 21:12:34 +08:00
99d3c69647 use stream mode depend on content-type 2023-03-24 13:14:34 +08:00
5eb070a62f support both fetch and stream mode 2023-03-15 02:33:49 +08:00
a68e4b9dbd change to stream api mode 2023-03-15 02:07:21 +08:00
e86ac176d1 init 2023-03-14 21:00:07 +08:00