-
Notifications
You must be signed in to change notification settings - Fork 16
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
fix: Minor updates on the docs #56
Conversation
README.md
Outdated
@@ -173,17 +173,21 @@ print(response.choices[0].message) | |||
| Force Cache Refresh | `cache_force_refresh` | `True`, `False` (Boolean) | ❔ Optional | | |||
| Cache Age | `cache_age` | `integer` (in seconds) | ❔ Optional | | |||
| Trace ID | `trace_id` | `string` | ❔ Optional | | |||
| Retries | `retry` | `integer` [0,5] | ❔ Optional | | |||
| Retries | `retry` | `json object` - See details below | ❔ Optional | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It'll help if we can add a JSON example here directly. Let's not worry about the table structure as it's more important I think to have these details in a single place
So, the text here can say:
{dict}
with two required keys: "attempts"
which expects integers in [0,5]
and "on_status_codes"
which expects array of status codes like [429,502]
Example: { "attempts": 5, "on_status_codes":[429,500] }
README.md
Outdated
| Metadata | `metadata` | `json object` [More info](https://docs.portkey.ai/key-features/custom-metadata) | ❔ Optional | | ||
|
||
**Retries Details:** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can remove this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left comments
Fixing some nit-pick changes on the docs.