Skip to content

Commit

Permalink
update changelog and doscring
Browse files Browse the repository at this point in the history
  • Loading branch information
ahartel committed Feb 13, 2023
1 parent 001615b commit 8584bda
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## 2.12.0

- Introduce offline tokenizer
- Add method `available_models` to Client and AsyncClient
- Add method `models` to Client and AsyncClient to list available models
- Fix docstrings for `complete` methods with respect to Prompt construction
- Minor docstring fix for `evaulate` methods

Expand Down
4 changes: 4 additions & 0 deletions aleph_alpha_client/aleph_alpha_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -946,6 +946,8 @@ def _build_json_body(
def models(self):
"""
Queries all models which are currently available.
For documentation of the response, see https://docs.aleph-alpha.com/api/available-models/
"""
response = self._get_request("models_available")
_raise_for_status(response.status_code, response.text)
Expand Down Expand Up @@ -1403,6 +1405,8 @@ def _build_json_body(
async def models(self):
"""
Queries all models which are currently available.
For documentation of the response, see https://docs.aleph-alpha.com/api/available-models/
"""
return await self._get_request_json("models_available")

Expand Down

0 comments on commit 8584bda

Please sign in to comment.