From 3162bc8ab0dc9b3e196c14d012aa4eab77bd5915 Mon Sep 17 00:00:00 2001 From: dieriba Date: Thu, 14 Nov 2024 13:54:21 +0100 Subject: [PATCH] feat: Support mistral anthropic for ai (#4692) * wip: openai proxy and other ai proxy integration * fixing migration script * wip: support different ai provider in front, fix proxy openai * wip: adding frontend ai provider * updated copilot types * wip: working on anthropic integration * done AI proxy front * adding new type and support for anthropic * updating gitignore * adding streaming response * added streaming prompt * push lib/gen * wip: fixing anthropic * anthropic fully supported * fix backend missing var error and fully support stream event for anthropic * remove gen directory * fixing openapi file * add support for mistral, and update create workspace components * remove deref.json * remove package-json * openapi * fix ui enable code * added utility function for init workspace ai provider * fix workspace switch bug * update anthropic property and fixed frontend error * fix workspace settings * update error message and fix typo migration file * chore: update openapi file * fix dev file * add .sqlx * all * update sqlx --------- Co-authored-by: dieriba Co-authored-by: Ruben Fiszel Co-authored-by: Ruben Fiszel --- ...872c721169d418586be2d15cee6b929049098.json | 22 ------------------- .../(logged)/workspace_settings/+page.svelte | 3 +++ 2 files changed, 3 insertions(+), 22 deletions(-) delete mode 100644 backend/.sqlx/query-e05dbe046e846c092a96b6b0a9d872c721169d418586be2d15cee6b929049098.json diff --git a/backend/.sqlx/query-e05dbe046e846c092a96b6b0a9d872c721169d418586be2d15cee6b929049098.json b/backend/.sqlx/query-e05dbe046e846c092a96b6b0a9d872c721169d418586be2d15cee6b929049098.json deleted file mode 100644 index c0875942d3..0000000000 --- a/backend/.sqlx/query-e05dbe046e846c092a96b6b0a9d872c721169d418586be2d15cee6b929049098.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "SELECT mute_critical_alerts FROM workspace_settings WHERE workspace_id = $1", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "mute_critical_alerts", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [ - true - ] - }, - "hash": "e05dbe046e846c092a96b6b0a9d872c721169d418586be2d15cee6b929049098" -} diff --git a/frontend/src/routes/(root)/(logged)/workspace_settings/+page.svelte b/frontend/src/routes/(root)/(logged)/workspace_settings/+page.svelte index 6e9ba1d116..4b353a8022 100644 --- a/frontend/src/routes/(root)/(logged)/workspace_settings/+page.svelte +++ b/frontend/src/routes/(root)/(logged)/workspace_settings/+page.svelte @@ -109,8 +109,11 @@ let errorHandlerItemKind: 'flow' | 'script' = 'script' let errorHandlerExtraArgs: Record = {} let errorHandlerMutedOnCancel: boolean | undefined = undefined +<<<<<<< HEAD let criticalAlertUIMuted: boolean | undefined = undefined let initialCriticalAlertUIMuted: boolean | undefined = undefined +======= +>>>>>>> f8c9237f8 (feat: Support mistral anthropic for ai (#4692)) let aiResourceInitialPath: string | undefined = undefined let aiResourceInitialProvider: string | undefined = undefined