Skip to content

Commit

Permalink
fix param assign pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivonei Junior committed Oct 13, 2023
1 parent e693d0d commit e9b44d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions langchain/src/llms/sagemaker_endpoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,17 +167,17 @@ export class SageMakerEndpoint extends LLM<BaseLLMCallOptions> {
* Calls the SageMaker endpoint and retrieves the result.
* @param {string} prompt The input prompt.
* @param {this["ParsedCallOptions"]} options Parsed call options.
* @param {CallbackManagerForLLMRun} _runManager Optional run manager.
* @param {CallbackManagerForLLMRun} runManager Optional run manager.
* @returns {Promise<string>} A promise that resolves to the generated string.
*/
/** @ignore */
async _call(
prompt: string,
options: this["ParsedCallOptions"],
_runManager?: CallbackManagerForLLMRun
runManager?: CallbackManagerForLLMRun
): Promise<string> {
return this.streaming
? await this.streamingCall(prompt, options, _runManager)
? await this.streamingCall(prompt, options, runManager)
: await this.noStreamingCall(prompt, options);
}

Expand Down

0 comments on commit e9b44d3

Please sign in to comment.