Laisky.Cai
72501cb746
Merge remote-tracking branch 'origin/upstream/main'
2024-03-11 09:32:11 +00:00
JustSong
a90161cf00
chore: drop idx_channels_key on start
2024-03-11 02:24:58 +08:00
JustSong
969042b001
chore: only use one log file ( close #1116 )
2024-03-10 23:44:48 +08:00
JustSong
796be42487
feat: update ratio config if missing
2024-03-10 19:29:42 +08:00
JustSong
5b50eb94e5
feat: able to send alert message via message pusher ( close #993 )
2024-03-10 19:16:06 +08:00
JustSong
12440874b0
feat: able to disable channel by success rate
2024-03-10 17:57:47 +08:00
JustSong
6ebc99460e
fix: add user to blacklist when it's banned or deleted, and make deletion soft ( close #473 , close #791 )
2024-03-10 15:56:19 +08:00
JustSong
f05b403ca5
feat: use real system prompt now ( close #1079 )
2024-03-10 14:32:30 +08:00
JustSong
b33616df44
feat: support groq now ( close #1087 )
2024-03-10 14:09:44 +08:00
Laisky.Cai
099e15f98b
Merge remote-tracking branch 'origin/upstream/main'
2024-03-09 01:31:04 +00:00
JustSong
cf16f44970
feat: load channel models from server
2024-03-09 02:28:23 +08:00
JustSong
bf2e26a48f
feat: support claude-3 ( close #1080 , close #1094 )
2024-03-09 01:12:47 +08:00
Laisky.Cai
577ec90736
fix: Initialize transport object, set timeouts, and add IdleTimeout config
...
- Introduced idle connection timeout for HTTP client transport
- Implemented custom timeout for HTTP client when `RelayTimeout` is 0
- Set ImpatientHTTPClient timeout to 5 seconds
- Added new config variable `IdleTimeout` with default value of 30 seconds
- Utilized shared transport object for all HTTP clients in relay/util package
2024-03-08 12:58:05 +00:00
Laisky.Cai
ba9b258a4b
feat: Enhance security and fix bugs in authentication
...
- Update the minimum access token length from 16 to 32
- Prevent spam by introducing policies and detecting user agents
- Add an authorization header to the login response
- Use base64 to decode the session secret and generate a random one if not set
2024-03-05 13:07:07 +00:00
Laisky.Cai
cb6cb66646
Merge remote-tracking branch 'origin/upstream/main'
2024-03-05 01:02:35 +00:00
Laisky.Cai
75d2055e03
docs: Implement a function to get completion ratio
...
- Implement retrieval for the completion ratio of a given model
2024-03-04 02:54:44 +00:00
JustSong
2df877a352
feat: switch priority when retry ( close #1048 )
2024-03-03 22:14:07 +08:00
JustSong
9d8967f7d3
feat: support Mistral's models now ( close #1051 )
2024-03-03 21:46:45 +08:00
JustSong
de18d6fe16
refactor: refactor image relay ( close #1068 )
2024-03-03 19:30:11 +08:00
JustSong
1d0b7fb5ae
feat: support chatglm-4 ( close #1045 , close #952 , close #952 , close #943 )
2024-03-02 03:05:25 +08:00
JustSong
f9490bb72e
fix: able to use updated default ratio
2024-03-02 01:32:04 +08:00
JustSong
df1fd9aa81
feat: support minimax's models now ( close #354 )
2024-03-02 01:24:28 +08:00
JustSong
614c2e0442
feat: support baichuan's models now ( close #1057 )
2024-03-02 00:55:48 +08:00
Laisky.Cai
a94a3f5b36
Merge remote-tracking branch 'origin/upstream/main'
2024-02-27 01:09:14 +00:00
JustSong
b747cdbc6f
fix: fix getAndValidateTextRequest failed: unexpected end of JSON input ( close #1043 )
2024-02-26 22:52:16 +08:00
JustSong
565ea58e68
feat: built in retry supported ( close #1036 , close #770 )
2024-02-25 19:01:49 +08:00
Laisky.Cai
29eab22762
Merge remote-tracking branch 'origin/upstream/main'
2024-02-19 07:23:30 +00:00
JustSong
d0e415893b
fix: fix SparkDesk model name
2024-02-18 17:16:11 +08:00
JustSong
f598b9df87
feat: add new SparkDesk models
2024-02-18 17:02:36 +08:00
JustSong
2acc2f5017
feat: support moonshot now ( close #804 )
2024-02-18 16:17:19 +08:00
JustSong
9383b638a6
feat: add ChatPro & ChatStd for tencent ( #1010 )
2024-02-18 14:40:01 +08:00
JustSong
de9a58ca0b
refactor: use config field to save config
2024-02-18 02:22:50 +08:00
JustSong
1aa374ccfb
refactor: use adaptor to do relay & test
2024-02-18 00:15:31 +08:00
Laisky.Cai
d548a01c59
feat: Handle errors, validate model names, and calculate quota usage ( #978 )
...
- Improved error handling in various modules for better stability and responsiveness.
- Optimized code in several files for improved efficiency and readability.
- Enhanced user experience by providing more detailed error responses in the controller.
- Strengthened security by ignoring sensitive files in `.gitignore`.
2024-02-12 21:35:40 +08:00
Laisky.Cai
4713c92969
Merge branch 'patch/format'
2024-01-28 13:54:35 +00:00
Laisky.Cai
0cabc2791f
feat: Handle errors, validate model names, and calculate quota usage
...
- Improved error handling in various modules for better stability and responsiveness.
- Optimized code in several files for improved efficiency and readability.
- Enhanced user experience by providing more detailed error responses in the controller.
- Strengthened security by ignoring sensitive files in `.gitignore`.
2024-01-28 13:53:05 +00:00
Laisky.Cai
10cbe63c0d
Merge remote-tracking branch 'origin/upstream/main'
2024-01-28 13:44:16 +00:00
JustSong
2cd1a78203
chore: update module name
2024-01-28 19:38:58 +08:00
JustSong
ea407f0054
feat: able to set completion ration now ( close #968 )
2024-01-28 16:45:54 +08:00
Benny
26e2e646cb
feat: sync models with OpenAI ( #971 )
...
* add new 0125 chat models and embedding-3 models
* refine the step of manually deploying
* add gpt-4-turbo-preview
2024-01-28 16:09:21 +08:00
JustSong
2d760d4a01
refactor: refactor relay part ( #957 )
...
* refactor: refactor relay part
* refactor: refactor config part
2024-01-21 23:21:42 +08:00
JustSong
eed9f5fdf0
refactor: refactor relay part ( #935 )
2024-01-14 19:21:03 +08:00
Laisky.Cai
d37fa80106
Merge remote-tracking branch 'origin/upstream/main'
2024-01-11 09:28:40 +00:00
JustSong
903aaeded0
chore: revert change
2024-01-07 18:47:39 +08:00
JustSong
bdd4be562d
chore: add theme validation
2024-01-07 18:44:26 +08:00
Laisky.Cai
021affc81a
Merge remote-tracking branch 'origin/upstream/main'
2024-01-03 05:54:05 +00:00
JustSong
aa03c89133
feat: able to add more UI theme ( #860 )
2024-01-01 18:55:03 +08:00
JustSong
cb5a3df616
fix: fix pr error ( #888 )
2024-01-01 17:40:10 +08:00
Laisky.Cai
7772064d87
fix: support base64 encoded image_url ( #872 )
...
- Add support for base64 encoded image in OpenAI's image_url
Co-authored-by: JustSong <39998050+songquanpeng@users.noreply.github.com>
2024-01-01 17:38:35 +08:00
Tailen
498dea2dbb
feat: add support for davinci-002 and babbage-002 ( #888 )
2024-01-01 17:06:17 +08:00