Skip to content

Commit

Permalink
Revert "chore: write column using o1 model"
Browse files Browse the repository at this point in the history
This reverts commit 05cd7df.
  • Loading branch information
kudoh committed Jan 24, 2025
1 parent 05cd7df commit 0c5ce43
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/bin/generate-column-o1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ Please pick one of these keywords and write a short article about it.`;

async function createColumn() {
const result = await openai.chat.completions.create({
model: 'o1',
model: 'o1-preview',
// model: 'gpt-4o-mini', // for testing
messages: [
{
Expand Down Expand Up @@ -146,7 +146,6 @@ Please pick one of these keywords and write a short article about it.`;
for (let retry = 0; retry <= 3; retry++) {
if (column.length <= 600 || !checkFormat(column)) {
console.warn('too short column or illegal format!! retrying...', retry);
await new Promise(resolve => setTimeout(resolve, 3000 * retry));
column = await createColumn();
} else {
console.info('check OK!')
Expand Down

0 comments on commit 0c5ce43

Please sign in to comment.