mirror of
https://github.com/acid-info/logos-press-engine.git
synced 2025-02-23 06:38:27 +00:00
decrease certainty threshhold on block search
This commit is contained in:
parent
f78bfa635c
commit
674d1877a4
@ -1,4 +1,5 @@
|
||||
import { ImageResponse } from '@vercel/og'
|
||||
import { handleMethodNotAllowedResponse } from 'next/dist/server/future/route-modules/helpers/response-handlers'
|
||||
|
||||
export const config = {
|
||||
runtime: 'edge',
|
||||
@ -36,3 +37,4 @@ export default async function handler() {
|
||||
},
|
||||
)
|
||||
}
|
||||
handleMethodNotAllowedResponse()
|
||||
|
@ -399,7 +399,7 @@ class UnbodyService extends UnbodyClient {
|
||||
? {
|
||||
nearText: {
|
||||
concepts: [q, ...tags].filter((t) => t.trim().length > 0),
|
||||
certainty: 0.85,
|
||||
certainty: 0.75,
|
||||
},
|
||||
}
|
||||
: {}
|
||||
@ -420,6 +420,8 @@ class UnbodyService extends UnbodyClient {
|
||||
limit: 20,
|
||||
})
|
||||
|
||||
console.log(query)
|
||||
|
||||
return this.request<UnbodyGraphQlResponseBlocks>(query)
|
||||
.then(({ data }) => {
|
||||
if (!data || !(data.Get.ImageBlock || data.Get.TextBlock))
|
||||
|
Loading…
x
Reference in New Issue
Block a user