mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-01-23 09:38:02 +00:00
fix: 更新factory user-agent
This commit is contained in:
@@ -25,7 +25,7 @@ class DroidRelayService {
|
|||||||
openai: '/o/v1/responses'
|
openai: '/o/v1/responses'
|
||||||
}
|
}
|
||||||
|
|
||||||
this.userAgent = 'factory-cli/0.19.4'
|
this.userAgent = 'factory-cli/0.19.12'
|
||||||
this.systemPrompt = SYSTEM_PROMPT
|
this.systemPrompt = SYSTEM_PROMPT
|
||||||
this.API_KEY_STICKY_PREFIX = 'droid_api_key'
|
this.API_KEY_STICKY_PREFIX = 'droid_api_key'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -196,9 +196,7 @@ class DroidScheduler {
|
|||||||
const selected = sorted[0]
|
const selected = sorted[0]
|
||||||
|
|
||||||
if (!selected) {
|
if (!selected) {
|
||||||
throw new Error(
|
throw new Error(`No schedulable account available after sorting (${normalizedEndpoint})`)
|
||||||
`No schedulable account available after sorting (${normalizedEndpoint})`
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (stickyKey && !isDedicatedBinding) {
|
if (stickyKey && !isDedicatedBinding) {
|
||||||
|
|||||||
Reference in New Issue
Block a user