🚧 Use TS project references

This commit is contained in:
Baptiste Arnaud
2024-08-28 18:09:35 +02:00
parent 0c7d2afd51
commit fdd6cc6fee
627 changed files with 3043 additions and 1696 deletions

View File

@@ -1,10 +1,8 @@
import { option, createAction } from '@typebot.io/forge'
import { defaultOpenAIOptions } from '../constants'
import OpenAI, { ClientOptions, toFile } from 'openai'
import OpenAI, { ClientOptions } from 'openai'
import { isNotEmpty } from '@typebot.io/lib'
import { auth } from '../auth'
import { baseOptions } from '../baseOptions'
import ky from 'ky'
export const createTranscription = createAction({
name: 'Create transcription',

View File

@@ -2,7 +2,6 @@
"name": "@typebot.io/openai-block",
"version": "1.0.0",
"description": "",
"main": "index.ts",
"keywords": [],
"author": "Baptiste Arnaud",
"license": "AGPL-3.0-or-later",
@@ -15,10 +14,8 @@
"devDependencies": {
"@typebot.io/forge": "workspace:*",
"@typebot.io/lib": "workspace:*",
"@typebot.io/tsconfig": "workspace:*",
"@typebot.io/variables": "workspace:*",
"@types/react": "18.2.15",
"ky": "1.2.4",
"typescript": "5.4.5"
"@types/react": "18.3.4",
"ky": "1.2.4"
}
}

View File

@@ -1,4 +1,4 @@
import { AsyncVariableStore, VariableStore } from '@typebot.io/forge/types'
import { AsyncVariableStore } from '@typebot.io/forge/types'
import { ChatCompletionOptions } from './parseChatCompletionOptions'
import { APICallError, streamText, ToolCallPart, ToolResultPart } from 'ai'
import { createOpenAI } from '@ai-sdk/openai'

View File

@@ -1,11 +1,26 @@
{
"extends": "@typebot.io/tsconfig/base.json",
"include": ["**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"],
"extends": "../../../tsconfig/base.json",
"include": [
"**/*.ts",
"**/*.tsx"
],
"compilerOptions": {
"lib": ["ESNext", "DOM"],
"noEmit": true,
"jsx": "preserve",
"jsxImportSource": "react"
}
"jsxImportSource": "react",
"outDir": "dist"
},
"references": [
{
"path": "../../../ai"
},
{
"path": "../../../lib"
},
{
"path": "../../../variables"
},
{
"path": "../../core"
}
]
}