Skip to content

Commit

Permalink
Make same changes but in index.md inside folder code
Browse files Browse the repository at this point in the history
  • Loading branch information
Mauricio_Aguas committed Oct 29, 2024
1 parent 936a291 commit a51d282
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
Binary file added website/learn/code/image-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 12 additions & 3 deletions website/learn/code/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,11 @@ Notice that `deploy` needs a `HAL9_TOKEN` environment variable with an API token


```bash
HAL9_TOKEN=H9YOURTOKEN hal9 deploy chatbot
HAL9_TOKEN=H9YOURTOKEN hal9 deploy chatbot --name my_first_chatbot
```
As easy as that you have created your first chatbot!

![alt text](image-2.png)

The code inside `/chatbot/app.py` contains a "Hello World" chatbot that reads the user prompt and echos the result back:

Expand Down Expand Up @@ -77,7 +80,13 @@ You can then run your project as follows:
hal9 run chatbot
```

If you customized your template with `--template` make sure to set the correct key, for example `export OPENAI_KEY=YOUR_OPENAI_KEY`.
If you customized your template with `--template` make sure to set the correct key, for example, if you are using the OpenAI template use:

```bash
export OPENAI_KEY=YOUR_OPENAI_KEY.
```
For more information on obtaining and using your OpenAI API key, please refer to the [OpenAI API Key documentation](https://help.openai.com/en/articles/4936850-where-do-i-find-my-openai-api-key).


You can then run your application locally with:

Expand All @@ -99,4 +108,4 @@ hal9 deploy chatbot --target hal9

Each command is tasked with preparing the deployment of your project folder. For example, `--target docker` should create a `Dockerfile` file that gets this project ready to run in cloud containers.

For personal use, `--target hal9` supports a free tier at `hal9.com`; enterprise support is also available to deploy with `--target hal9 --url hal9.yourcompany.com`
For personal use, `--target hal9` supports a free tier at `hal9.com`; enterprise support is also available to deploy with `--target hal9 --url hal9.yourcompany.com`

0 comments on commit a51d282

Please sign in to comment.