Spaces:
Build error
Build error
Aaron Ji commited on
Commit ·
a0ca9ce
1
Parent(s): 69e02cb
chore: enable fallback by default for s.jina.ai
Browse files
src/api/searcher-serper.ts
CHANGED
|
@@ -112,7 +112,7 @@ export class SearcherHost extends RPCHost {
|
|
| 112 |
@Param('hl', { validate: (v: string) => WORLD_LANGUAGES.some(l => l.code === v) }) hl?: string,
|
| 113 |
@Param('location') location?: string,
|
| 114 |
@Param('page') page?: number,
|
| 115 |
-
@Param('fallback', { type: Boolean, default:
|
| 116 |
@Param('q') q?: string,
|
| 117 |
) {
|
| 118 |
// We want to make our search API follow SERP schema, so we need to expose 'num' parameter.
|
|
|
|
| 112 |
@Param('hl', { validate: (v: string) => WORLD_LANGUAGES.some(l => l.code === v) }) hl?: string,
|
| 113 |
@Param('location') location?: string,
|
| 114 |
@Param('page') page?: number,
|
| 115 |
+
@Param('fallback', { type: Boolean, default: true }) fallback?: boolean,
|
| 116 |
@Param('q') q?: string,
|
| 117 |
) {
|
| 118 |
// We want to make our search API follow SERP schema, so we need to expose 'num' parameter.
|