const client = new OpenAI({
baseURL: 'https://YOUR-GAIA-DOMAIN.gaia.domains',
apiKey: 'YOUR_API_KEY'
});
async function callOpenAI() {
try {
const response = await client.chat.completions.create({
model: "llama",
messages: [
{role: "system", content: "You are a strategic reasoner."},
{role: "user", content: "What is the purpose of life?"}
],
temperature: 0.7,
max_tokens: 500
});
}
}
Sign up for updates from the Gaia team