2023-12-13 10:22:02 +01:00
|
|
|
import { option } from '@typebot.io/forge'
|
|
|
|
import { defaultOpenAIOptions } from './constants'
|
|
|
|
|
2024-03-01 15:33:22 +01:00
|
|
|
export const baseOptions = option
|
|
|
|
.object({
|
|
|
|
baseUrl: option.string.layout({
|
|
|
|
accordion: 'Customize provider',
|
|
|
|
label: 'Base URL',
|
|
|
|
defaultValue: defaultOpenAIOptions.baseUrl,
|
|
|
|
}),
|
|
|
|
apiVersion: option.string.layout({
|
|
|
|
accordion: 'Customize provider',
|
|
|
|
label: 'API version',
|
|
|
|
}),
|
|
|
|
})
|
|
|
|
.layout({
|
|
|
|
isHidden: true,
|
|
|
|
})
|
|
|
|
.describe('Deprecated, use other dedicated OpenAI compatible blocks instead')
|