Skip to content

Commit 9558dfa

Browse files
authored
Merge pull request #380 from Quickchive/feat/change-uri-encoding
Feat/change uri encoding
2 parents dd7c6db + c03a710 commit 9558dfa

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/categories/category.service.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,7 @@ Present your reply options in JSON format below.
549549

550550
try {
551551
const response = await this.openaiService.createChatCompletion({
552+
model: 'o1-mini',
552553
question,
553554
temperature: 0,
554555
responseType: 'json',

src/contents/util/content.util.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,12 @@ class OGCrawler {
4242
try {
4343
const response: AxiosResponse = await axios({
4444
method: 'get',
45-
url,
45+
url: encodeURI(url),
4646
timeout: this.timeout,
4747
headers: {
4848
'User-Agent': this.userAgent,
4949
Accept:
5050
'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8',
51-
'Accept-Language': 'en-US,en;q=0.5',
52-
'Accept-Encoding': 'gzip, deflate, br',
5351
Cookie: this.cookies,
5452
'Cache-Control': 'no-cache',
5553
Pragma: 'no-cache',

0 commit comments

Comments
 (0)