mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-11-02 16:32:14 +00:00
feat(admin): add opt-in server timing metrics
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
1 parent
7d239d62e8
commit
54d228dda5
43 files changed
+2014
-17
No files matched your search
@@ -250,6 +250,7 @@ import TextArea from '@/components/common/TextArea.vue'
|
||||
import { Icon } from '@/components/icons'
|
||||
import { useClipboard } from '@/composables/useClipboard'
|
||||
import { buildApiUrl } from '@/api/client'
|
||||
import { ADMIN_UI_REQUEST_HEADER } from '@/api/adminUIRequest'
|
||||
import { adminAPI } from '@/api/admin'
|
||||
import type { Account, ClaudeModel } from '@/types'
|
||||
|
||||
@@ -438,7 +439,8 @@ const startTest = async () => {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
Authorization: `Bearer ${localStorage.getItem('auth_token')}`,
|
||||
'Content-Type': 'application/json'
|
||||
'Content-Type': 'application/json',
|
||||
[ADMIN_UI_REQUEST_HEADER]: '1'
|
||||
},
|
||||
body: JSON.stringify(requestBody),
|
||||
signal: abortController.signal
|
||||
|
||||
Reference in new issue
Block a user