add reasoning block
This commit is contained in:
@@ -102,11 +102,23 @@ export const migrations: Record<string, SqlMigration> = {
|
||||
"updated_at" timestamp DEFAULT now() NOT NULL
|
||||
);
|
||||
|
||||
DO $$
|
||||
BEGIN
|
||||
IF NOT EXISTS (
|
||||
SELECT 1 FROM information_schema.columns
|
||||
WHERE table_name = 'messages'
|
||||
AND column_name = 'reasoning_content'
|
||||
) THEN
|
||||
ALTER TABLE "messages" ADD COLUMN "reasoning_content" text;
|
||||
END IF;
|
||||
END $$;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS "messages" (
|
||||
"id" uuid PRIMARY KEY NOT NULL,
|
||||
"conversation_id" uuid NOT NULL REFERENCES "conversations"("id") ON DELETE CASCADE,
|
||||
"role" text NOT NULL,
|
||||
"content" text,
|
||||
"reasoning_content" text,
|
||||
"prompt_content" text,
|
||||
"metadata" text,
|
||||
"mentionables" text,
|
||||
|
||||
Reference in New Issue
Block a user