fix: 默认使用gpt4

このコミットが含まれているのは:
xiang 2023-06-04 12:43:13 +08:00
コミット c9465bba91
2個のファイルの変更3行の追加6行の削除

ファイルの表示

@ -87,11 +87,8 @@ export class Forefrontnew extends Chat {
console.log('try save cookie');
console.log('save cookie successfully')
} finally {
const se = await this.page.$('#model-select');
if (se) {
await this.page.click('#model-select');
await this.page.select('#model-select', 'gpt-4')
}
await this.page.waitForSelector('.absolute > .shadow > .w-full:nth-child(2) > .flex > .font-medium',{timeout:100000});
await this.page.click('.absolute > .shadow > .w-full:nth-child(2) > .flex > .font-medium');
}
console.log('try to find input');
await this.page.waitForSelector('.relative > .flex > .w-full > .text-th-primary-dark > div', {

ファイルの表示

@ -14,7 +14,7 @@ export class FreeBrowser {
constructor(id: string, options?: PuppeteerLaunchOptions) {
this.options = {
userDataDir: path.join(runPath, id),
// userDataDir: path.join(runPath, id),
...options
};
this.id = id;