Skip to content

Commit b72948d

Browse files
committed
[Browser Rendering] Add missing function reserved word
1 parent 605f68f commit b72948d

File tree

1 file changed

+2
-2
lines changed
  • src/content/docs/browser-rendering/how-to

1 file changed

+2
-2
lines changed

src/content/docs/browser-rendering/how-to/ai.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ Having the webpage text, the user's goal and output schema, we can now use an LL
125125
The example below uses `@hf/thebloke/deepseek-coder-6.7b-instruct-awq` but other [models](/workers-ai/models/), or services like OpenAI, could be used with minimal changes:
126126

127127
```ts
128-
async getLLMResult(env, prompt: string, schema?: any) {
128+
async function getLLMResult(env, prompt: string, schema?: any) {
129129
const model = "@hf/thebloke/deepseek-coder-6.7b-instruct-awq"
130130
const requestBody = {
131131
messages: [{
@@ -275,4 +275,4 @@ With your script now running, you can go to `http://localhost:8787/` and should
275275
}
276276
```
277277

278-
For more complex websites or prompts, you might need a better model. Check out the latest models in [Workers AI](/workers-ai/models/).
278+
For more complex websites or prompts, you might need a better model. Check out the latest models in [Workers AI](/workers-ai/models/).

0 commit comments

Comments
 (0)