refactor(ai): remove generic providers and hardcode gemini-embedding-2 in embedding activity

This commit is contained in:
yiling
2026-05-28 14:55:59 +08:00
parent 5425f095fd
commit a04392da41
7 changed files with 64 additions and 302 deletions
+6 -1
View File
@@ -4,8 +4,13 @@ import { logger } from '@/logger'
import { s3Service } from '@/services/s3/s3'
import { type AgentTool } from '@earendil-works/pi-agent-core'
import { type ImageContent } from '@earendil-works/pi-ai'
import { type Usage } from '@/services/ai/provider/provider'
import { ApplicationFailure } from '@temporalio/activity'
export interface Usage {
inputTokens: number
outputTokens: number
model: string
}
import type { Prisma, Skill } from '@/generated/prisma/client'
export type AgentWithProviderAndModel = Prisma.AgentGetPayload<{