Skip to content

Commit

Permalink
added explanation for chaining default argument setting to Arguments …
Browse files Browse the repository at this point in the history
…page.
  • Loading branch information
djl11 committed Sep 18, 2024
1 parent 22e96d7 commit 2eb4feb
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions universal_api/arguments.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,17 @@ assert client.temperature == 0.4
assert client.n is None
```

Calls to set default arguments can also be chained together like so,
as each call `set_<some_parameter>` returns `self`:

```python
import unify
client = unify.Unify("gpt-4o@openai")
client.set_temperature(0.5).set_n(2)
assert client.temperature == 0.5
assert client.n == 2
```

## Feedback

If you believe any of these arguments *could* be supported by a certain model or provider, but is not currently
Expand Down

0 comments on commit 2eb4feb

Please sign in to comment.