🚩 fix: Initialize Conversation Only when Necessary Data is Fetched (#1379)

* fix(ChatRoute): only initialize conversation after all data is fetched (models, endpoints, initialConversationQuery if not `new`)

* chore: remove unnecessary packages for rolling up api

* chore: bump data-provider package.json
This commit is contained in:
Danny Avila 2023-12-17 18:56:01 -05:00 committed by GitHub
parent 7c2134fb12
commit c9d3e0ab6a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 20 additions and 86 deletions

View file

@ -3,7 +3,6 @@ import resolve from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';
import alias from '@rollup/plugin-alias';
import json from '@rollup/plugin-json';
import babel from '@rollup/plugin-babel';
const rootPath = path.resolve(__dirname, '../../');
const rootServerPath = path.resolve(__dirname, '../../api');
@ -30,19 +29,6 @@ export default {
}),
commonjs(),
json(),
babel({
exclude: 'node_modules/**',
babelHelpers: 'bundled',
presets: [
['@babel/preset-env', { targets: { node: 'current' } }],
'@babel/preset-typescript',
],
plugins: [
'@babel/plugin-syntax-dynamic-import',
'@babel/plugin-proposal-nullish-coalescing-operator',
'@babel/plugin-proposal-optional-chaining',
],
}),
],
external: (id) => {
// More selective external function