Skip to content

Commit

Permalink
Update i18n.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
canisminor1990 authored Dec 15, 2023
1 parent 2959cf3 commit d92741d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ import { HumanMessage, SystemMessage } from 'langchain/schema';

import { config } from './const';

const model = new ChatOpenAI({ temperature: 0 }, { baseURL: process.env.OPENAI_PROXY_URL });
const model = new ChatOpenAI(
{ temperature: 0, modelName: config.modelName },
{ baseURL: process.env.OPENAI_PROXY_URL },
);

export const translateJSON = async (json, outputLocale, entryLocale = config.entryLocale) => {
consola.info('i18n generating...');
Expand Down

0 comments on commit d92741d

Please sign in to comment.