You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
openai.embeddings.create({ model:'text-similarity-babbage-001',input:'The food was delicious and the waiter...' }, {
184
+
awaitopenai.chat.completions.create({ messages: [{ role:'user', content:'How can I get the name of the current day in Node.js?' }], model:'gpt-3.5-turbo' }, {
180
185
maxRetries:5,
181
186
});
182
187
```
@@ -193,7 +198,7 @@ const openai = new OpenAI({
193
198
});
194
199
195
200
// Override per-request:
196
-
openai.edits.create({ model: 'text-davinci-edit-001',input: 'What day of the wek is it?',instruction: 'Fix the spelling mistakes' }, {
201
+
awaitopenai.chat.completions.create({ messages: [{ role: 'user', content: 'How can I list all files in a directory using Python?' }], model: 'gpt-3.5-turbo' }, {
0 commit comments