Skip to content

Commit

Permalink
Feature/provider (#61)
Browse files Browse the repository at this point in the history
* wip

* wip

* wip

* wip
  • Loading branch information
pontusab authored Jan 15, 2025
1 parent 530622d commit 59c3e18
Show file tree
Hide file tree
Showing 43 changed files with 4,996 additions and 311 deletions.
3 changes: 2 additions & 1 deletion apps/web/.env-example
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ TURSO_AUTH_TOKEN=
RESEND_API_KEY=
UPSTASH_REDIS_REST_URL=
UPSTASH_REDIS_REST_TOKEN=
OPENAI_API_KEY=
OPENAI_API_KEY=
ENCRYPTION_SECRET=
3 changes: 3 additions & 0 deletions apps/web/migrations/0017_vengeful_tomas.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ALTER TABLE `project_settings` ADD `provider` text DEFAULT 'openai' NOT NULL;--> statement-breakpoint
ALTER TABLE `project_settings` ADD `model` text DEFAULT 'gpt-4-turbo' NOT NULL;--> statement-breakpoint
ALTER TABLE `project_settings` ADD `provider_api_key` text;
1 change: 1 addition & 0 deletions apps/web/migrations/0018_worried_salo.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE `project_settings` ADD `organization_id` text NOT NULL REFERENCES organizations(id);
19 changes: 19 additions & 0 deletions apps/web/migrations/0019_glorious_orphan.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
ALTER TABLE `project_settings` ADD `translation_memory` integer DEFAULT true NOT NULL;--> statement-breakpoint
ALTER TABLE `project_settings` ADD `quality_checks` integer DEFAULT true NOT NULL;--> statement-breakpoint
ALTER TABLE `project_settings` ADD `context_detection` integer DEFAULT true NOT NULL;--> statement-breakpoint
ALTER TABLE `project_settings` ADD `length_control` text DEFAULT 'flexible' NOT NULL;--> statement-breakpoint
ALTER TABLE `project_settings` ADD `inclusive_language` integer DEFAULT true NOT NULL;--> statement-breakpoint
ALTER TABLE `project_settings` ADD `formality` text DEFAULT 'casual' NOT NULL;--> statement-breakpoint
ALTER TABLE `project_settings` ADD `tone_of_voice` text DEFAULT 'casual' NOT NULL;--> statement-breakpoint
ALTER TABLE `project_settings` ADD `brand_name` text;--> statement-breakpoint
ALTER TABLE `project_settings` ADD `brand_voice` text;--> statement-breakpoint
ALTER TABLE `project_settings` ADD `emotive_intent` text DEFAULT 'neutral' NOT NULL;--> statement-breakpoint
ALTER TABLE `project_settings` ADD `idioms` integer DEFAULT true NOT NULL;--> statement-breakpoint
ALTER TABLE `project_settings` ADD `terminology` text;--> statement-breakpoint
ALTER TABLE `project_settings` ADD `domain_expertise` text DEFAULT 'general' NOT NULL;--> statement-breakpoint
ALTER TABLE `project_settings` DROP COLUMN `cache`;--> statement-breakpoint
ALTER TABLE `project_settings` DROP COLUMN `context`;--> statement-breakpoint
ALTER TABLE `project_settings` DROP COLUMN `temperature`;--> statement-breakpoint
ALTER TABLE `project_settings` DROP COLUMN `instructions`;--> statement-breakpoint
ALTER TABLE `project_settings` DROP COLUMN `memory`;--> statement-breakpoint
ALTER TABLE `project_settings` DROP COLUMN `grammar`;
Loading

0 comments on commit 59c3e18

Please sign in to comment.