Skip to content

Commit 9bdb537

Browse files
fix python snippet (#23624)
1 parent 345c30e commit 9bdb537

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/models/code/Bge-Reranker-Base.astro

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ response = requests.post(
4747
f"https://api.cloudflare.com/client/v4/accounts/{ACCOUNT_ID}/ai/run/${name}",
4848
headers={"Authorization": f"Bearer {AUTH_TOKEN}"},
4949
json={
50-
"query": "Which one is better?"
51-
"context": [
50+
"query": "Which one is better?",
51+
"contexts": [
5252
{"text": "a cyberpunk lizzard"},
53-
{"text": "a cyberpunk car"},
53+
{"text": "a cyberpunk car"},
5454
]
5555
}
5656
)

0 commit comments

Comments
 (0)