diff --git a/docs/auth.md b/docs/auth.md index 9ae9baf06..8aee7de8b 100644 --- a/docs/auth.md +++ b/docs/auth.md @@ -121,8 +121,8 @@ You can use Firebase Auth to protect your flows defined with `onFlow()`: import { firebaseAuth } from '@genkit-ai/firebase/auth'; import { onFlow } from '@genkit-ai/firebase/functions'; -export const jokeFlow = onFlow({ - name: 'jokeFlow', +export const menuSuggestionFlow = onFlow({ + name: 'menuSuggestionFlow', inputSchema: z.string(), outputSchema: z.string(), authPolicy: firebaseAuth((user) => { @@ -140,7 +140,7 @@ above. When running this flow during development, you would pass the user object in the same way: ```posix-terminal -genkit flow:run jokeFlow '"Banana"' --auth '{"admin": true}' +genkit flow:run menuSuggestionFlow '"Banana"' --auth '{"admin": true}' ``` By default the Firebase Auth plugin requires the auth header to be sent by the @@ -169,8 +169,8 @@ indicate to the library that you are forgoing authorization checks by using the ```ts import { onFlow, noAuth } from '@genkit-ai/firebase/functions'; -export const jokeFlow = onFlow({ - name: 'jokeFlow', +export const menuSuggestionFlow = onFlow({ + name: 'menuSuggestionFlow', inputSchema: z.string(), outputSchema: z.string(), // WARNING: Only do this if you have some other gatekeeping in place, like @@ -190,8 +190,8 @@ the following configuration options to your `onFlow()`: ```ts import { onFlow } from '@genkit-ai/firebase/functions'; -export const jokeFlow = onFlow({ - name: 'jokeFlow', +export const menuSuggestionFlow = onFlow({ + name: 'menuSuggestionFlow', inputSchema: z.string(), outputSchema: z.string(), diff --git a/docs/cloud-run.md b/docs/cloud-run.md index bf26bd38c..9c5258cb6 100644 --- a/docs/cloud-run.md +++ b/docs/cloud-run.md @@ -122,7 +122,7 @@ flow. 1. In the developer UI (http://localhost:4000/), run the flow: - 1. Click **jokeFlow**. + 1. Click **menuSuggestionFlow**. 1. On the **Input JSON** tab, provide a subject for the model: diff --git a/docs/deploy-node.md b/docs/deploy-node.md index 43ef207cc..c215e499b 100644 --- a/docs/deploy-node.md +++ b/docs/deploy-node.md @@ -81,7 +81,7 @@ sample flow. ```posix-terminal npm run build - genkit flow:run jokeFlow "\"banana\"" -s + genkit flow:run menuSuggestionFlow "\"banana\"" -s ``` 1. **Optional**: Start the developer UI: @@ -104,7 +104,7 @@ sample flow. Then, in another window: ```posix-terminal - curl -X POST "http://127.0.0.1:3400/jokeFlow?stream=true" -H "Content-Type: application/json" -d '{"data": "banana"}' + curl -X POST "http://127.0.0.1:3400/menuSuggestionFlow?stream=true" -H "Content-Type: application/json" -d '{"data": "banana"}' ``` 1. If everything's working as expected, you can deploy the flow to the provider diff --git a/docs/firebase.md b/docs/firebase.md index 3f4c8e061..327d01b23 100644 --- a/docs/firebase.md +++ b/docs/firebase.md @@ -123,9 +123,9 @@ deploying the default sample flow to Firebase. next section), in the `httpsOptions` parameter, set a CORS policy: ```js - export const jokeFlow = onFlow( + export const menuSuggestionFlow = onFlow( { - name: 'jokeFlow', + name: 'menuSuggestionFlow', // ... httpsOptions: { cors: '*' }, // Add this line. }, @@ -150,7 +150,7 @@ deploying the default sample flow to Firebase. 2. In the developer UI (http://localhost:4000/), run the flow: - 1. Click **jokeFlow**. + 1. Click **menuSuggestionFlow**. 2. On the **Input JSON** tab, provide a subject for the model: @@ -243,8 +243,8 @@ app: