Skip to content

Commit

Permalink
set config to the openAI.assistant object, not the stringified copy t…
Browse files Browse the repository at this point in the history
…hat omits the function_handler function.
  • Loading branch information
bruffridge committed Nov 8, 2024
1 parent 1e0e917 commit 2d07f13
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class OpenAIAssistantIO extends OpenAIAssistantIOI {
constructor(deepChat: DeepChat) {
const directConnectionCopy = JSON.parse(JSON.stringify(deepChat.directConnection)) as DirectConnection;
const apiKey = directConnectionCopy.openAI;
const config = directConnectionCopy.openAI?.assistant;
const config = deepChat.directConnection?.openAI?.assistant;
// prettier-ignore
super(deepChat, config, OpenAIAssistantIO.URL_SEGMENTS, OpenAIUtils.buildKeyVerificationDetails(),
OpenAIUtils.buildHeaders, apiKey);
Expand Down

0 comments on commit 2d07f13

Please sign in to comment.