File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
ui/packages/platform/src/pages/Bot Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -19,9 +19,9 @@ import { aiModelBuilder } from "./utils";
19
19
20
20
const WS_URL = process . env . REACT_APP_WS_URL || '' ;
21
21
22
- export type Model = 'gpt ' | 'gemini '
22
+ export type Model = 'oai ' | 'gcp '
23
23
24
- export const DEFAULT_MODEL : Model = 'gemini '
24
+ export const DEFAULT_MODEL : Model = 'gcp '
25
25
26
26
type ErrorType = {
27
27
code ?: number ;
Original file line number Diff line number Diff line change @@ -16,5 +16,5 @@ export const permalinkLinkBuilder = (id: string): string => {
16
16
17
17
18
18
export const aiModelBuilder = ( model : string ) : Model => {
19
- return / o a i | g p t / . test ( model ) ? "gpt " : / g e m i n i | g c p / . test ( model ) ? "gemini " : DEFAULT_MODEL ;
19
+ return / o a i | g p t / . test ( model ) ? "oai " : / g e m i n i | g c p / . test ( model ) ? "gcp " : DEFAULT_MODEL ;
20
20
}
You can’t perform that action at this time.
0 commit comments