kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
pull/700/head
rodzic
1017a58db5
commit
23221d3bf4
|
@ -38,11 +38,11 @@ export abstract class AIFunctionsProvider {
|
||||||
private _functions?: AIFunctionSet
|
private _functions?: AIFunctionSet
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a set of AI-compatible functions exposed by this class.
|
* An `AIFunctionSet` containing all of the AI-compatible functions exposed
|
||||||
|
* by this class.
|
||||||
*
|
*
|
||||||
* The returned `AIFunctionSet` is useful for manipulating AI functions across
|
* This property is useful for manipulating AI functions across multiple
|
||||||
* multiple providers, picking specific functions, ommitting certain functions,
|
* sources, picking specific functions, ommitting certain functions, etc.
|
||||||
* etc.
|
|
||||||
*/
|
*/
|
||||||
get functions(): AIFunctionSet {
|
get functions(): AIFunctionSet {
|
||||||
if (!this._functions) {
|
if (!this._functions) {
|
||||||
|
@ -53,7 +53,6 @@ export abstract class AIFunctionsProvider {
|
||||||
)
|
)
|
||||||
const invocables =
|
const invocables =
|
||||||
(metadata?.invocables as PrivateAIFunctionMetadata[]) ?? []
|
(metadata?.invocables as PrivateAIFunctionMetadata[]) ?? []
|
||||||
// console.log({ metadata, invocables })
|
|
||||||
|
|
||||||
const aiFunctions = invocables.map((invocable) => {
|
const aiFunctions = invocables.map((invocable) => {
|
||||||
const impl = (this as any)[invocable.methodName]
|
const impl = (this as any)[invocable.methodName]
|
||||||
|
|
Ładowanie…
Reference in New Issue