kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
feat: make options object optional
rodzic
a5adc08ad0
commit
a62c41afe1
|
@ -29,19 +29,21 @@ export class Agentic extends EventEmitter {
|
||||||
protected _idGeneratorFn: types.IDGeneratorFunction
|
protected _idGeneratorFn: types.IDGeneratorFunction
|
||||||
protected _id: string
|
protected _id: string
|
||||||
|
|
||||||
constructor(opts: {
|
constructor(
|
||||||
openai?: types.openai.OpenAIClient
|
opts: {
|
||||||
anthropic?: types.anthropic.Anthropic
|
openai?: types.openai.OpenAIClient
|
||||||
modelDefaults?: Pick<
|
anthropic?: types.anthropic.Anthropic
|
||||||
types.BaseLLMOptions,
|
modelDefaults?: Pick<
|
||||||
'provider' | 'model' | 'modelParams' | 'timeoutMs' | 'retryConfig'
|
types.BaseLLMOptions,
|
||||||
>
|
'provider' | 'model' | 'modelParams' | 'timeoutMs' | 'retryConfig'
|
||||||
humanFeedbackDefaults?: HumanFeedbackOptions<HumanFeedbackType, any>
|
>
|
||||||
idGeneratorFn?: types.IDGeneratorFunction
|
humanFeedbackDefaults?: HumanFeedbackOptions<HumanFeedbackType, any>
|
||||||
logger?: types.Logger
|
idGeneratorFn?: types.IDGeneratorFunction
|
||||||
ky?: types.KyInstance
|
logger?: types.Logger
|
||||||
taskTracker?: TerminalTaskTracker
|
ky?: types.KyInstance
|
||||||
}) {
|
taskTracker?: TerminalTaskTracker
|
||||||
|
} = {}
|
||||||
|
) {
|
||||||
super()
|
super()
|
||||||
|
|
||||||
// TODO: This is a bit hacky, but we're doing it to have a slightly nicer API
|
// TODO: This is a bit hacky, but we're doing it to have a slightly nicer API
|
||||||
|
|
Ładowanie…
Reference in New Issue