Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/tool-calls-stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import {
ChatCompletionMessageParam,
} from 'openai/resources/chat';

// Used so that the each chunk coming in is noticable
// Used so that the each chunk coming in is noticeable
const CHUNK_DELAY_MS = 100;

// gets API Key from environment variable OPENAI_API_KEY
Expand Down Expand Up @@ -131,7 +131,7 @@ async function main() {
message = messageReducer(message, chunk);
writeLine(message);

// Add a small delay so that the chunks coming in are noticablej
// Add a small delay so that the chunks coming in are noticeable
await new Promise((resolve) => setTimeout(resolve, CHUNK_DELAY_MS));
}
console.log();
Expand Down
4 changes: 2 additions & 2 deletions src/resources/beta/threads/threads.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1023,7 +1023,7 @@ export interface ThreadCreateAndRunPollParams {
/**
* Set of 16 key-value pairs that can be attached to an object. This can be useful
* for storing additional information about the object in a structured format. Keys
* can be a maximum of 64 characters long and values can be a maxium of 512
* can be a maximum of 64 characters long and values can be a maximum of 512
* characters long.
*/
metadata?: unknown | null;
Expand Down Expand Up @@ -1127,7 +1127,7 @@ export interface ThreadCreateAndRunPollParams {

/**
* Controls for how a thread will be truncated prior to the run. Use this to
* control the intial context window of the run.
* control the initial context window of the run.
*/
truncation_strategy?: ThreadCreateAndRunPollParams.TruncationStrategy | null;
}
Expand Down