DirkSchlossmacher
|
94ea750137
|
Update openai.ts
// add max_tokens to vision model
if (visionModel) {
Object.defineProperty(requestPayload, "max_tokens", {
enumerable: true,
configurable: true,
writable: true,
value: 4096,
});
}
// value: modelConfig.max_tokens,
|
2024-04-16 22:01:55 +02:00 |
|
Klaas Reineke
|
f1526ebf65
|
Merge remote-tracking branch 'upstream/main' into klaas20240303
|
2024-03-25 15:56:20 +01:00 |
|
kidv
|
29e03b88c7
|
Fix: Handle empty server response in API call
|
2024-03-24 04:07:25 +08:00 |
|
Fred
|
43e5dc2292
|
fix: fix the method to detect vision model
|
2024-02-28 11:33:43 +08:00 |
|
fred-bf
|
08fa22749a
|
fix: add max_tokens when using vision model (#4157)
|
2024-02-27 17:28:01 +08:00 |
|
DirkSchlossmacher
|
5a8fbaa654
|
model replace
|
2024-02-23 07:16:04 +01:00 |
|
TheRam_
|
e2da3406d2
|
Add vision support (#4076)
|
2024-02-20 18:04:32 +08:00 |
|
fred-bf
|
bca74241e6
|
fix: fix gemini issue when using app (#4013)
* chore: update path
* fix: fix google auth logic
* fix: not using header authorization for google api
* chore: revert to allow stream
|
2024-02-07 13:17:11 +08:00 |
|
DirkSchlossmacher
|
b0b5e5e9f2
|
gpt-4-turbo-preview
|
2024-01-29 11:51:19 +01:00 |
|
Fred Liang
|
45798f993d
|
fix: fix type errors
|
2023-12-24 02:39:13 +08:00 |
|
DirkSchlossmacher
|
2d4544ec4b
|
modelsToReplace
|
2023-11-24 16:20:18 +01:00 |
|
DirkSchlossmacher
|
bf334d93fe
|
no model tracking in redis
|
2023-11-23 15:19:55 +01:00 |
|
DirkSchlossmacher
|
d0a8be1f26
|
rollback
|
2023-11-23 14:54:45 +01:00 |
|
DirkSchlossmacher
|
9f68da3afc
|
getMyServerSession
|
2023-11-23 14:37:56 +01:00 |
|
DirkSchlossmacher
|
ee042d9dbe
|
no req
|
2023-11-23 14:37:21 +01:00 |
|
DirkSchlossmacher
|
d86b7ddd50
|
getServerAuthSession
|
2023-11-23 14:22:51 +01:00 |
|
DirkSchlossmacher
|
edaa25d1d5
|
const modelIdentifier = modelConfig.model;
|
2023-11-23 13:56:19 +01:00 |
|
DirkSchlossmacher
|
04ed030276
|
session or email is not available
|
2023-11-23 13:51:49 +01:00 |
|
DirkSchlossmacher
|
4b66ba8821
|
userEmail
|
2023-11-23 13:45:12 +01:00 |
|
DirkSchlossmacher
|
fda1afdebd
|
modelConfig.model
|
2023-11-23 13:32:16 +01:00 |
|
DirkSchlossmacher
|
ea0e0f8cec
|
getServerSession
|
2023-11-23 13:25:57 +01:00 |
|
DirkSchlossmacher
|
51e5785ce4
|
const session = await getServerSession();
|
2023-11-23 13:22:37 +01:00 |
|
DirkSchlossmacher
|
62955f1347
|
incrementAPICallCount
|
2023-11-23 12:58:39 +01:00 |
|
Yidadaa
|
f2485931d9
|
feat: better animation speed
|
2023-11-19 19:15:11 +08:00 |
|
Yidadaa
|
536ace8e10
|
feat: animate streaming response to make more smooth
|
2023-11-19 18:24:51 +08:00 |
|
Yidadaa
|
b7ffca031e
|
feat: close #935 add azure support
|
2023-11-10 02:43:37 +08:00 |
|
Yifei Zhang
|
fd2f441e02
|
feat: wont send max_tokens
|
2023-11-09 20:45:25 +08:00 |
|
Yidadaa
|
d0a1d910d4
|
fix: #3186 enable max_tokens in chat payload
|
2023-11-09 03:19:13 +08:00 |
|
Yidadaa
|
ae8226907f
|
feat: close #2621 use better default api url
|
2023-08-14 21:36:29 +08:00 |
|
7lsu
|
cf625e3542
|
typo fix
|
2023-08-01 10:16:36 +08:00 |
|
Yidadaa
|
15e063e1b5
|
feat: #2330 disable /list/models
|
2023-07-10 23:19:43 +08:00 |
|
Yidadaa
|
28c457730a
|
fix: #2280 auto-detect models from 'list/models'
|
2023-07-09 18:03:06 +08:00 |
|
guochao
|
6653a31eb7
|
perf: models接口返回数据的容错处理
|
2023-07-06 20:00:30 +08:00 |
|
Yidadaa
|
4131fccbe0
|
feat: close #2192 use /list/models to get model ids
|
2023-07-04 23:16:24 +08:00 |
|
Yidadaa
|
cda074fe24
|
fixup
|
2023-07-04 00:40:57 +08:00 |
|
Yidadaa
|
0140f771c6
|
feat: close #2175 use default api host if endpoint is empty
|
2023-06-28 23:12:35 +08:00 |
|
Yifei Zhang
|
f3ec9f02eb
|
Merge pull request #1807 from AngelLiang/feat/frequency_penalty
feat: Add frequency_penalty request parameter
|
2023-06-18 14:36:55 +08:00 |
|
Yidadaa
|
0d4611052e
|
feat: white url list for openai security
|
2023-06-13 00:39:29 +08:00 |
|
AngelLiang
|
72cbb156ae
|
feat: Add frequency_penalty request parameter
|
2023-06-04 16:05:35 +08:00 |
|
Yidadaa
|
af497c96ec
|
fix: #1612 infinite loading
|
2023-05-20 19:58:12 +08:00 |
|
Yidadaa
|
a524a60c46
|
fix: #1611 show corret message when can not query usage
|
2023-05-19 00:27:25 +08:00 |
|
kirk.shan
|
789f3d993c
|
fix content-type = text/event-stream;charset=utf-8
|
2023-05-18 10:25:06 +08:00 |
|
Yidadaa
|
85445c4ef2
|
chore: wont parse finished result
|
2023-05-18 02:09:05 +08:00 |
|
Yidadaa
|
5f2745c32a
|
feat: handle non-stream response
|
2023-05-18 02:04:12 +08:00 |
|
Yidadaa
|
30676d118f
|
fix: #1571 #1578 handle more error code
|
2023-05-18 00:14:29 +08:00 |
|
ShengYan, Zhang
|
94a2104b55
|
fix: set openWhenHidden to be true
|
2023-05-17 17:20:17 +08:00 |
|
ShengYan, Zhang
|
e00652ce86
|
fix: #1533 handle non-stream type
|
2023-05-17 08:50:50 +08:00 |
|
PaRaD1SE98
|
8cde6cd4d7
|
Merge pull request #1 from PaRaD1SE98/fix_typo
fix: typo reqestTimeoutId -> requestTimeoutId
|
2023-05-16 10:01:45 +09:00 |
|
PaRaD1SE98
|
06534fa0ae
|
fix: typo reqestTimeoutId -> requestTimeoutId
|
2023-05-16 09:59:30 +09:00 |
|
Yidadaa
|
71cbf86b2c
|
fixup: add more error info
|
2023-05-16 01:58:58 +08:00 |
|