Skip to content

Commit

Permalink
fix typo in README.md
Browse files Browse the repository at this point in the history
must await `Thread.create()`
  • Loading branch information
pythonpete32 authored May 21, 2024
1 parent d660f7a commit f9894c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ The new Assistants API from OpenAI sets a new industry standard, significantly a
Experts.js aims to simplify the usage of this new API by removing the complexity of managing [Run](https://platform.openai.com/docs/assistants/how-it-works/runs-and-run-steps) objects and allowing Assistants to be linked together as Tools.

```javascript
const thread = Thread.create();
const thread = await Thread.create();
const assistant = await MyAssistant.create();
const output = await assistant.ask("Say hello.", thread.id);
console.log(output) // Hello
Expand Down

0 comments on commit f9894c0

Please sign in to comment.