mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-13 01:09:04 +08:00
Fixing rate-limiter-flexible package version
Redis version <3.0.2 throws TS bug: https://github.com/animir/node-rate-limiter-flexible/issues/228
This commit is contained in:
parent
c2e00d1998
commit
538dc63035
@ -90,7 +90,7 @@
|
|||||||
"posthog-node": "^4.0.1",
|
"posthog-node": "^4.0.1",
|
||||||
"promptable": "^0.0.10",
|
"promptable": "^0.0.10",
|
||||||
"puppeteer": "^22.12.1",
|
"puppeteer": "^22.12.1",
|
||||||
"rate-limiter-flexible": "^5.0.3",
|
"rate-limiter-flexible": "2.4.2",
|
||||||
"redis": "^4.6.7",
|
"redis": "^4.6.7",
|
||||||
"resend": "^3.4.0",
|
"resend": "^3.4.0",
|
||||||
"robots-parser": "^3.0.1",
|
"robots-parser": "^3.0.1",
|
||||||
|
10
apps/api/pnpm-lock.yaml
generated
10
apps/api/pnpm-lock.yaml
generated
@ -144,8 +144,8 @@ importers:
|
|||||||
specifier: ^22.12.1
|
specifier: ^22.12.1
|
||||||
version: 22.12.1(typescript@5.4.5)
|
version: 22.12.1(typescript@5.4.5)
|
||||||
rate-limiter-flexible:
|
rate-limiter-flexible:
|
||||||
specifier: ^5.0.3
|
specifier: 2.4.2
|
||||||
version: 5.0.3
|
version: 2.4.2
|
||||||
redis:
|
redis:
|
||||||
specifier: ^4.6.7
|
specifier: ^4.6.7
|
||||||
version: 4.6.14
|
version: 4.6.14
|
||||||
@ -3894,8 +3894,8 @@ packages:
|
|||||||
resolution: {integrity: sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==}
|
resolution: {integrity: sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==}
|
||||||
engines: {node: '>= 0.6'}
|
engines: {node: '>= 0.6'}
|
||||||
|
|
||||||
rate-limiter-flexible@5.0.3:
|
rate-limiter-flexible@2.4.2:
|
||||||
resolution: {integrity: sha512-lWx2y8NBVlTOLPyqs+6y7dxfEpT6YFqKy3MzWbCy95sTTOhOuxufP2QvRyOHpfXpB9OUJPbVLybw3z3AVAS5fA==}
|
resolution: {integrity: sha512-rMATGGOdO1suFyf/mI5LYhts71g1sbdhmd6YvdiXO2gJnd42Tt6QS4JUKJKSWVVkMtBacm6l40FR7Trjo6Iruw==}
|
||||||
|
|
||||||
raw-body@2.5.2:
|
raw-body@2.5.2:
|
||||||
resolution: {integrity: sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==}
|
resolution: {integrity: sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==}
|
||||||
@ -9025,7 +9025,7 @@ snapshots:
|
|||||||
|
|
||||||
range-parser@1.2.1: {}
|
range-parser@1.2.1: {}
|
||||||
|
|
||||||
rate-limiter-flexible@5.0.3: {}
|
rate-limiter-flexible@2.4.2: {}
|
||||||
|
|
||||||
raw-body@2.5.2:
|
raw-body@2.5.2:
|
||||||
dependencies:
|
dependencies:
|
||||||
|
@ -48,7 +48,7 @@ export async function getImageDescription(
|
|||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
return response.content[0].text;
|
return response[0].content.text;
|
||||||
}
|
}
|
||||||
default: {
|
default: {
|
||||||
if (!process.env.OPENAI_API_KEY) {
|
if (!process.env.OPENAI_API_KEY) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user