Skip to content

Commit 1f30e7e

Browse files
author
Bogdan Tsechoev
committed
gpt -> oai, gemini -> gcp
1 parent 4a99506 commit 1f30e7e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ui/packages/platform/src/pages/Bot/hooks.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ import { aiModelBuilder } from "./utils";
1919

2020
const WS_URL = process.env.REACT_APP_WS_URL || '';
2121

22-
export type Model = 'gpt' | 'gemini'
22+
export type Model = 'oai' | 'gcp'
2323

24-
export const DEFAULT_MODEL: Model = 'gemini'
24+
export const DEFAULT_MODEL: Model = 'gcp'
2525

2626
type ErrorType = {
2727
code?: number;

ui/packages/platform/src/pages/Bot/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ export const permalinkLinkBuilder = (id: string): string => {
1616

1717

1818
export const aiModelBuilder = (model: string): Model => {
19-
return /oai|gpt/.test(model) ? "gpt" : /gemini|gcp/.test(model) ? "gemini" : DEFAULT_MODEL;
19+
return /oai|gpt/.test(model) ? "oai" : /gemini|gcp/.test(model) ? "gcp" : DEFAULT_MODEL;
2020
}

0 commit comments

Comments
 (0)