v1.2.2 - Fix network error on background, auto-retry streaming with reconnect
This commit is contained in:
18
node_modules/@nicepkg/gpt-runner/dist/index.cjs
generated
vendored
Normal file
18
node_modules/@nicepkg/gpt-runner/dist/index.cjs
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
const common = require('@nicepkg/gpt-runner-shared/common');
|
||||
const node = require('@nicepkg/gpt-runner-shared/node');
|
||||
|
||||
function defineConfig(config) {
|
||||
return config;
|
||||
}
|
||||
|
||||
exports.defineConfig = defineConfig;
|
||||
for (const k in common) {
|
||||
if (k !== 'default' && !exports.hasOwnProperty(k)) exports[k] = common[k];
|
||||
}
|
||||
for (const k in node) {
|
||||
if (k !== 'default' && !exports.hasOwnProperty(k)) exports[k] = node[k];
|
||||
}
|
||||
13
node_modules/@nicepkg/gpt-runner/dist/index.d.ts
generated
vendored
Normal file
13
node_modules/@nicepkg/gpt-runner/dist/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
import { UserConfig as UserConfig$1, ChatModelType } from '@nicepkg/gpt-runner-shared/common';
|
||||
export * from '@nicepkg/gpt-runner-shared/common';
|
||||
export * from '@nicepkg/gpt-runner-shared/node';
|
||||
|
||||
type GetStaticValueFromChatModelType<T extends ChatModelType> = T extends ChatModelType ? `${T}` : never;
|
||||
type UserConfig = {
|
||||
[Key in keyof Omit<UserConfig$1, 'rootPath' | 'exts'>]: Key extends 'model' ? Omit<NonNullable<UserConfig$1[Key]>, 'type'> & {
|
||||
type: GetStaticValueFromChatModelType<NonNullable<UserConfig$1[Key]>['type']>;
|
||||
} : UserConfig$1[Key];
|
||||
};
|
||||
declare function defineConfig(config: UserConfig): UserConfig;
|
||||
|
||||
export { UserConfig, defineConfig };
|
||||
8
node_modules/@nicepkg/gpt-runner/dist/index.mjs
generated
vendored
Normal file
8
node_modules/@nicepkg/gpt-runner/dist/index.mjs
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
export * from '@nicepkg/gpt-runner-shared/common';
|
||||
export * from '@nicepkg/gpt-runner-shared/node';
|
||||
|
||||
function defineConfig(config) {
|
||||
return config;
|
||||
}
|
||||
|
||||
export { defineConfig };
|
||||
Reference in New Issue
Block a user