@langchain/core 0.1.10 → 0.1.11-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -102,7 +102,6 @@ export interface BaseFunctionCallOptions extends BaseLanguageModelCallOptions {
|
|
|
102
102
|
}
|
|
103
103
|
export type BaseLanguageModelInput = BasePromptValueInterface | string | BaseMessageLike[];
|
|
104
104
|
export interface BaseLanguageModelInterface<RunOutput = any, CallOptions extends BaseLanguageModelCallOptions = BaseLanguageModelCallOptions> extends RunnableInterface<BaseLanguageModelInput, RunOutput, CallOptions> {
|
|
105
|
-
CallOptions: CallOptions;
|
|
106
105
|
get callKeys(): string[];
|
|
107
106
|
generatePrompt(promptValues: BasePromptValueInterface[], options?: string[] | CallOptions, callbacks?: Callbacks): Promise<LLMResult>;
|
|
108
107
|
/**
|
|
@@ -128,7 +127,6 @@ export type LanguageModelLike = Runnable<BaseLanguageModelInput, LanguageModelOu
|
|
|
128
127
|
* Base class for language models.
|
|
129
128
|
*/
|
|
130
129
|
export declare abstract class BaseLanguageModel<RunOutput = any, CallOptions extends BaseLanguageModelCallOptions = BaseLanguageModelCallOptions> extends BaseLangChain<BaseLanguageModelInput, RunOutput, CallOptions> implements BaseLanguageModelParams, BaseLanguageModelInterface<RunOutput, CallOptions> {
|
|
131
|
-
CallOptions: CallOptions;
|
|
132
130
|
/**
|
|
133
131
|
* Keys that the language model accepts as call options.
|
|
134
132
|
*/
|
|
@@ -64,7 +64,9 @@ exports.ignoredKeyword = {
|
|
|
64
64
|
*/
|
|
65
65
|
exports.initialBaseURI =
|
|
66
66
|
// @ts-ignore
|
|
67
|
-
typeof self !== "undefined" &&
|
|
67
|
+
typeof self !== "undefined" &&
|
|
68
|
+
self.location &&
|
|
69
|
+
self.location.origin !== "null"
|
|
68
70
|
? //@ts-ignore
|
|
69
71
|
/* #__PURE__ */ new URL(self.location.origin + self.location.pathname + location.search)
|
|
70
72
|
: /* #__PURE__ */ new URL("https://github.com/cfworker");
|
|
@@ -61,7 +61,9 @@ export const ignoredKeyword = {
|
|
|
61
61
|
*/
|
|
62
62
|
export let initialBaseURI =
|
|
63
63
|
// @ts-ignore
|
|
64
|
-
typeof self !== "undefined" &&
|
|
64
|
+
typeof self !== "undefined" &&
|
|
65
|
+
self.location &&
|
|
66
|
+
self.location.origin !== "null"
|
|
65
67
|
? //@ts-ignore
|
|
66
68
|
/* #__PURE__ */ new URL(self.location.origin + self.location.pathname + location.search)
|
|
67
69
|
: /* #__PURE__ */ new URL("https://github.com/cfworker");
|