This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // This is a client side file. There are a couple fetch helper functions here | |
| import { setHeaderOptions } from "./apiHelpers"; | |
| import { ApiEndpoints } from "./apiEndpoints"; | |
| import { fetchData } from "./apiHelpers"; | |
| type RealTimeTokenResponse = { | |
| client_secret: { value: string }; | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import OpenAI from "openai"; | |
| import { | |
| RunnableFunctionWithParse, | |
| RunnableFunctionWithoutParse, | |
| } from "openai/lib/RunnableFunction"; | |
| import { AssistantTool } from "openai/resources/beta/assistants"; | |
| import { MessageCreateParams } from "openai/resources/beta/threads/messages"; | |
| const configuration = { | |
| apiKey: "<Your API Key>", |