-
Thuc Pham authored
Co-authored-by:
Marcus Schiesser <mail@marcusschiesser.de>
Thuc Pham authoredCo-authored-by:
Marcus Schiesser <mail@marcusschiesser.de>
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
openai_o1.ts 390 B
import { OpenAI } from "@llamaindex/openai";
(async () => {
const llm = new OpenAI({ model: "o1-preview", temperature: 1 });
const prompt = `What are three compounds we should consider investigating to advance research
into new antibiotics? Why should we consider them?
`;
// complete api
const response = await llm.complete({ prompt });
console.log(response.text);
})();