Skip to content
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

docs: move mention of max_retries to the correct section #1017

Merged
merged 1 commit into from
Oct 4, 2024
Merged
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
4 changes: 1 addition & 3 deletions docs/concepts/retrying.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ This post will mostly describe how to use simple and more complex retry and logi

Before we begin, we'll use a simple example of a validator. One that checks that the name is in all caps. While we could obviously prompt that we want the name in all caps, this serves as an example of how we can build in additional logic without changing our prompts.

To use simple retry, we just need to set `max_retries`` as an integer. In this example.

```python
from typing import Annotated
from pydantic import AfterValidator, BaseModel
Expand Down Expand Up @@ -40,7 +38,7 @@ except Exception as e:

## Simple: Max Retries

The simplest way of defining a retry is just defining the maximum number of retries.
The simplest way to set up retries is to assign an integer value to `max_retries`.

```python
import openai
Expand Down