27 lines
633 B
TypeScript
27 lines
633 B
TypeScript
'use client';
|
|
|
|
import React, { useEffect } from 'react';
|
|
|
|
import OpenAI from 'openai';
|
|
|
|
export default function Recommendations() {
|
|
// const client = new OpenAI();
|
|
|
|
const getRecommendations = async () => {
|
|
// const response = await client.responses.create({
|
|
// model: 'gpt-5',
|
|
// input: 'Write a short bedtime story about a unicorn.',
|
|
// });
|
|
// console.log(response.output_text);
|
|
};
|
|
|
|
// useEffect(() => {
|
|
// console.log('process.env', process.env);
|
|
// if (process.env.OPENAI_API_KEY) {
|
|
// getRecommendations();
|
|
// }
|
|
// }, []);
|
|
|
|
return <div>Recommendations</div>;
|
|
}
|