Skip to content

Commit ef06634

Browse files
committed
turn off openai token count for now
1 parent 82ab4ea commit ef06634

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

web/src/app/api/v1/token-count/_post.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { AnalyticsEvent } from '@codebuff/common/constants/analytics-events'
2-
import { isOpenAIProviderModel } from '@codebuff/common/constants/chatgpt-oauth'
32
import {
43
isClaudeModel,
54
toAnthropicModelId,
@@ -78,7 +77,7 @@ export async function postTokenCount(params: {
7877
const { messages, system, model } = bodyResult.data
7978

8079
try {
81-
const useOpenAI = model != null && isOpenAIProviderModel(model)
80+
const useOpenAI = model != null && false // isOpenAIProviderModel(model)
8281
const inputTokens = useOpenAI
8382
? await countTokensViaOpenAI({ messages, system, model, fetch, logger })
8483
: await countTokensViaAnthropic({

0 commit comments

Comments
 (0)