Skip to content

Commit

Permalink
reverts
Browse files Browse the repository at this point in the history
  • Loading branch information
stephmilovic committed Dec 5, 2024
1 parent 75a1624 commit b37f976
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export class ActionsClientChatOpenAI extends ChatOpenAI {
#logger: Logger;
#actionResultData: string;
#traceId: string;
#signal: AbortSignal;
#signal?: AbortSignal;
#timeout?: number;

constructor({
Expand Down Expand Up @@ -102,7 +102,7 @@ export class ActionsClientChatOpenAI extends ChatOpenAI {
this.#timeout = timeout;
this.#actionResultData = '';
this.streaming = streaming;
this.#signal = signal ?? new AbortController().signal;
this.#signal = signal;
this.model = model ?? DEFAULT_OPEN_AI_MODEL;
// to be passed to the actions client
this.#temperature = temperature;
Expand Down Expand Up @@ -140,7 +140,6 @@ export class ActionsClientChatOpenAI extends ChatOpenAI {
| OpenAI.ChatCompletionCreateParamsNonStreaming
): Promise<AsyncIterable<OpenAI.ChatCompletionChunk> | OpenAI.ChatCompletion> {
return this.caller.call(async () => {
console.log('==> this.llmType', this.llmType);
const requestBody = this.formatRequestForActionsClient(completionRequest, this.llmType);
this.#logger.debug(
() =>
Expand Down

0 comments on commit b37f976

Please sign in to comment.