Skip to content

fix some typos #139

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/docs/100-tools/03-offerings/02-image-generation.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ source .venv/bin/activate

> Note: You can install the python dependencies manually by running `pip install -r requirements.txt` in the root of the cloned repository. This prevents the need to run `make bootstrap` or activate the virtual environment.

3. In the same shell session that your virutal environment is activated, reference `<path-to-the-repo>/tool.gpt` in your GPTScript.
3. In the same shell session that your virtual environment is activated, reference `<path-to-the-repo>/tool.gpt` in your GPTScript.

## Usage
To use the Image Generation tool, you need to make sure that the OPENAI_API_KEY environment variable is set to your OpenAI API key. You can obtain an API key from the OpenAI platform if you don't already have one.
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/101-cookbook/image-generator.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ in a specific style that we tell the tool to use.
This will generate an image of a city skyline at night in the style of a 17th century impressionist oil painting and write the resulting image to a file named `painting.png`.

## Recap
In this example, we have created a GPTScript that leverages the `image-generation` tool to generate an image based on a prompt. We gave it some flexibility by specifiying an argument `prompt` that the user can provide when running the script. We also specified gave the script a specific style of the image that we want to generate, that being a 17th century impressionist oil painter.
In this example, we have created a GPTScript that leverages the `image-generation` tool to generate an image based on a prompt. We gave it some flexibility by specifying an argument `prompt` that the user can provide when running the script. We also specified gave the script a specific style of the image that we want to generate, that being a 17th century impressionist oil painter.

Notable things to point out:
#### Tools
The `tools` directive was used here to reference the `image-generation` tool and the `sys.download` and `sys.write` system tools. GPTScript will know the tools availble to it and will use them when it sees fit in the script.
The `tools` directive was used here to reference the `image-generation` tool and the `sys.download` and `sys.write` system tools. GPTScript will know the tools available to it and will use them when it sees fit in the script.

#### Args
We used the `args` directive to specify the `prompt` argument that the user can provide when running the script. This is a required argument and the user must provide it when running the script.
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/101-cookbook/vision.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Notable things to point out:

#### Tools

The `tools` directive was used here to reference the `vision` and the `sys.write` tools. GPTScript will know the tools availble to it and will use them when it sees fit in the script.
The `tools` directive was used here to reference the `vision` and the `sys.write` tools. GPTScript will know the tools available to it and will use them when it sees fit in the script.

#### Args

Expand Down
4 changes: 2 additions & 2 deletions examples/travel-agent.gpt
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ Based on the input, do the following in order:
2. Based on the results build an initial outline of locations to include.
3. For each location you determine, search for essential things to do in that location (maximum of one search per location). Include at
least 5 activities per day and 20 per location.
4. With all of the activities and locations, build out an itenerary that outlines each day and each hour in that day for the trip.
5. Reevaluate the plan and move dates around such that it is optimized for effecient travel
4. With all of the activities and locations, build out an itinerary that outlines each day and each hour in that day for the trip.
5. Reevaluate the plan and move dates around such that it is optimized for efficient travel
6. Look over the entire thing one more time and ask yourself if its missing anything. If it is, make your edits now.
7. Write all of this into a vacation.md document.

Expand Down