Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/msgbyte/tianji
/ ai.ts
File
ai.ts
src/server/trpc/routers/ai.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
{ z } from
'zod'
;
2
import
{ OpenApiMetaInfo, router, workspaceProcedure } from
'../trpc.js'
;
3
import
{
4
calcOpenAIToken,
Callers
nothing calls this directly
Calls
11
checkCredit
Function · 0.85
getSurveyPrompt
Function · 0.85
calcOpenAIToken
Function · 0.85
getOpenAIClient
Function · 0.85
costCredit
Function · 0.85
createAuditLog
Function · 0.85
buildAIOpenapi
Function · 0.85
sendBuildSurveyClassifyMessageQueue
Function · 0.85
sendBuildSurveyTranslationMessageQueue
Function · 0.85
input
Method · 0.80
output
Method · 0.80
Tested by
no test coverage detected