feat: hoppscotch-common & platform additions for ai experiments (#4222)

Co-authored-by: jamesgeorge007 <25279263+jamesgeorge007@users.noreply.github.com>
This commit is contained in:
Akash K
2024-07-30 12:16:44 +05:30
committed by GitHub
parent 2a37235229
commit d68cfb313e
12 changed files with 208 additions and 18 deletions

View File

@@ -0,0 +1,10 @@
import * as E from "fp-ts/Either"
export type ExperimentsPlatformDef = {
aiExperiments?: {
enableAIExperiments: boolean
generateRequestName: (
requestInfo: string
) => Promise<E.Either<string, string>>
}
}

View File

@@ -12,6 +12,7 @@ import { ServiceClassInstance } from "dioc"
import { IOPlatformDef } from "./io"
import { SpotlightPlatformDef } from "./spotlight"
import { InfraPlatformDef } from "./infra"
import { ExperimentsPlatformDef } from "./experiments"
import { Ref } from "vue"
export type PlatformDef = {
@@ -60,6 +61,7 @@ export type PlatformDef = {
duplicateCollectionDisabledInPersonalWorkspace?: boolean
}
infra?: InfraPlatformDef
experiments?: ExperimentsPlatformDef
}
export let platform: PlatformDef