Storing the model on promptVariant is problematic because it isn't always in sync with the actual prompt definition. I'm removing it for now to see if we can get away with that -- might have to add it back in later if this causes trouble. Added `cost` to modelOutput as well so we can cache that, which is important given that the cost calculations won't be the same between different API providers.
9 lines
216 B
SQL
9 lines
216 B
SQL
/*
|
|
Warnings:
|
|
|
|
- You are about to drop the column `model` on the `PromptVariant` table. All the data in the column will be lost.
|
|
|
|
*/
|
|
-- AlterTable
|
|
ALTER TABLE "ModelOutput" ADD COLUMN "cost" DOUBLE PRECISION;
|