wip: zen
This commit is contained in:
parent
b4d0090e00
commit
96ca0de3bc
2 changed files with 6 additions and 1 deletions
|
|
@ -92,6 +92,7 @@ export async function handler(
|
||||||
const stickyProvider = await stickyTracker?.get()
|
const stickyProvider = await stickyTracker?.get()
|
||||||
const authInfo = await authenticate(modelInfo)
|
const authInfo = await authenticate(modelInfo)
|
||||||
const billingSource = validateBilling(authInfo, modelInfo)
|
const billingSource = validateBilling(authInfo, modelInfo)
|
||||||
|
logger.metric({ source: billingSource })
|
||||||
|
|
||||||
const retriableRequest = async (retry: RetryOptions = { excludeProviders: [], retryCount: 0 }) => {
|
const retriableRequest = async (retry: RetryOptions = { excludeProviders: [], retryCount: 0 }) => {
|
||||||
const providerInfo = selectProvider(
|
const providerInfo = selectProvider(
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,11 @@ export default {
|
||||||
url.pathname !== "/zen/v1/chat/completions" &&
|
url.pathname !== "/zen/v1/chat/completions" &&
|
||||||
url.pathname !== "/zen/v1/messages" &&
|
url.pathname !== "/zen/v1/messages" &&
|
||||||
url.pathname !== "/zen/v1/responses" &&
|
url.pathname !== "/zen/v1/responses" &&
|
||||||
!url.pathname.startsWith("/zen/v1/models/")
|
!url.pathname.startsWith("/zen/v1/models/") &&
|
||||||
|
url.pathname !== "/zen/go/v1/chat/completions" &&
|
||||||
|
url.pathname !== "/zen/go/v1/messages" &&
|
||||||
|
url.pathname !== "/zen/go/v1/responses" &&
|
||||||
|
!url.pathname.startsWith("/zen/go/v1/models/")
|
||||||
)
|
)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue