Richard C Lim
247ef187f8
Update common.ts
2025-02-03 21:18:05 -05:00
Richard C Lim
07b34eb44d
Update common.ts
2025-02-03 03:36:38 -05:00
Richard C Lim
5d35dc9ce7
Update common.ts
2025-02-03 02:29:24 -05:00
Richard C Lim
0703876b57
Update common.ts
2025-02-02 19:24:11 -05:00
Richard C Lim
6b6fd6997d
Update common.ts
2025-02-02 19:06:37 -05:00
Richard C Lim
f55a173cc3
Update common.ts
2025-02-02 18:39:04 -05:00
Richard C Lim
a4db5a9011
Update common.ts
...
debug logger
2025-02-02 18:35:32 -05:00
Richard C Lim
97b6eaa38a
Update common.ts
2025-02-02 17:50:25 -05:00
Richard C Lim
7885ea7d9e
Update common.ts
2025-02-02 05:35:38 -05:00
Richard C Lim
e3e456e434
Update common.ts
2025-02-02 04:15:57 -05:00
Richard C Lim
22da0d4bfc
Update common.ts
2025-02-02 04:03:56 -05:00
Richard C Lim
342f7b17c1
Update common.ts
2025-02-02 03:43:27 -05:00
Richard C Lim
e021555e09
Update common.ts
2025-02-01 22:51:54 -05:00
Richard C Lim
039b606e6b
Update common.ts
2025-02-01 21:24:00 -05:00
Richard C Lim
7f13025590
Update common.ts
2025-02-01 19:50:50 -05:00
Richard C Lim
4aa0ff789e
Update common.ts
2025-02-01 19:33:41 -05:00
Richard C Lim
e979421c8e
Update common.ts
2025-02-01 03:23:26 -05:00
Richard C Lim
37ff8924d1
Update common.ts
2025-01-31 22:33:24 -05:00
Richard C Lim
32d788d808
Update common.ts
...
added baseUrl
2025-01-31 22:24:48 -05:00
Richard C Lim
104264cde7
Update common.ts
2025-01-31 04:44:44 -05:00
suruiqiang
7380c8a2c1
Merge branch 'main' of https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web into add_deepseek
2024-12-29 08:43:25 +08:00
code-october
1a678cb4d8
fix model leak issue
2024-11-29 15:47:28 +00:00
ryanhex53
8e2484fcdf
Refactor: Replace all provider split occurrences with getModelProvider utility method
2024-11-05 13:52:54 +00:00
ryanhex53
b844045d23
Custom model names can include the @
symbol by itself.
...
To specify the model's provider, append it after the model name using `@` as before.
This format supports cases like `google vertex ai` with a model name like `claude-3-5-sonnet@20240620`.
For instance, `claude-3-5-sonnet@20240620@vertex-ai` will be split by `split(/@(?!.*@)/)` into:
`[ 'claude-3-5-sonnet@20240620', 'vertex-ai' ]`, where the former is the model name and the latter is the custom provider.
2024-11-05 07:44:12 +00:00
DDDDD12138
63ffd473d5
chore: remove unused imports
2024-09-15 20:17:02 +08:00
lloydzhou
f5209fc344
stash code
2024-08-28 23:58:46 +08:00
lloydzhou
728c38396a
support cloudflare ai gateway
2024-07-12 12:00:25 +08:00
lloydzhou
147fc9a35a
fix ts type error
2024-07-09 15:10:23 +08:00
lloydzhou
71af2628eb
hotfix: old AZURE_URL config error: "DeploymentNotFound". #4945 #4930
2024-07-09 00:32:18 +08:00
lloydzhou
6dc4844c12
using default azure api-version value
2024-07-06 00:05:59 +08:00
lloydzhou
d9758be3ae
fix ts
2024-07-05 20:20:21 +08:00
lloydzhou
6b1b530443
remove makeAzurePath
2024-07-05 20:15:56 +08:00
lloydzhou
1c20137b0e
support azure deployment name
2024-07-05 19:59:45 +08:00
lloydzhou
97aa72ec5b
hotfix ts
2024-07-04 08:36:25 +00:00
lloydzhou
aa08183439
hotfix
2024-07-04 16:03:35 +08:00
lloydzhou
e7b16bfbc0
add function to check model is available
2024-07-04 15:30:24 +08:00
DeanYao
d89a12aa05
Revert "Chat gpt"
2024-05-20 19:02:46 +08:00
Hao Jia
01c9dbc1fd
Merge remote-tracking branch 'origin/main' into gpt-4o
...
# Conflicts:
# public/apple-touch-icon.png
2024-05-16 14:43:10 +08:00
DeanYao
8ef77f50c3
Merge branch 'main' into serverrside
2024-03-28 11:20:52 +08:00
Yifei Zhang
350ddd2af1
Merge pull request #3215 from akira-cn/main
...
fix: remove the content-encoding header
2023-12-27 01:26:48 +08:00
Fred Liang
422d70d928
chore: update auth value logic ( #3630 )
2023-12-25 10:25:43 +08:00
Fred Liang
19137b79bc
fix: return bearer header when using openai
2023-12-25 09:57:40 +08:00
Fred Liang
f5ed1604aa
fix: fix removing bearer header
2023-12-25 05:24:20 +08:00
Fred Liang
778e88cb56
chore: resolve conflict
2023-12-24 02:15:30 +08:00
H0llyW00dzZ
8dc8682078
Fix Api Common [Server Side]
...
- [+] fix(common.ts): improve handling of OpenAI-Organization header
- Check if serverConfig.openaiOrgId is defined and not an empty string
- Log the value of openaiOrganizationHeader if present, otherwise log that the header is not present
- Conditionally delete the OpenAI-Organization header from the response if [Org ID] is undefined or empty (not setup in ENV)
2023-12-04 13:33:23 +07:00
H0llyW00dzZ
36e9c6ac4d
Refactor Api Common [Server Side] [Console Log]
...
- [+] refactor(common.ts): remove unnecessary console.log for [Org ID] in requestOpenai function
- [+] refactor(common.ts): conditionally delete OpenAI-Organization header from response if [Org ID] is not set up in ENV
2023-12-01 19:49:12 +07:00
H0llyW00dzZ
f9d916925e
Fixup Api Common [Server Side] [Console Log]
...
- [+] fix(common.ts): fix condition to check if serverConfig.openaiOrgId is not undefined
2023-11-25 10:23:16 +07:00
H0llyW00dzZ
f9258878db
Fix Api Common [Server Side] [Console Log]
...
- [+] fix(common.ts): fix console.log statement for [Org ID] to handle undefined value
2023-11-25 10:10:06 +07:00
Yidadaa
a5a1f2e8ad
feat: CUSTOM_MODELS support mapper
2023-11-12 00:46:21 +08:00
akira-cn
dd6e79922a
fix: remove the content-encoding header
2023-11-10 20:42:12 +08:00