refactor: share llm decision types

This commit is contained in:
Remi
2025-09-20 09:27:45 +02:00
parent ae0664c17c
commit 1711ed1e5e
4 changed files with 21 additions and 34 deletions

View File

@@ -1,6 +1,7 @@
// server/api/llm/decide.post.ts
import { readBody, createError } from 'h3'
import { routeDecision, type LLMDecisionInput } from '../../utils/openai'
import type { LLMDecisionInput } from '~~/shared/types/llm'
import { routeDecision } from '../../utils/openai'
export default defineEventHandler(async (event) => {
const body = await readBody<LLMDecisionInput | undefined>(event)