Skip to content
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
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@ repos:
hooks:
- id: mypy
name: mypy-clients-python
entry: mypy --config-file clients/python/mypy.ini clients/python
entry: mypy --config-file clients/python/mypy.ini
language: system
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.3.0' # Make sure this matches the version in requirements-dev.txt!
hooks:
- id: mypy
name: mypy-server
entry: mypy --config-file model-engine/mypy.ini model-engine
entry: mypy --config-file model-engine/mypy.ini
language: system
- repo: local
hooks:
Expand Down
52 changes: 52 additions & 0 deletions docs/api/data_types.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,37 @@
- num_completion_tokens

::: llmengine.CompletionSyncResponse
selection:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm, do we must list these one by one?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a configuration in mkdocs.yml that allows members to be listed automatically, but the trade off is that we have no control over the order of the members.

members:
- request_id
- output

::: llmengine.CompletionStreamResponse
selection:
members:
- request_id
- output

::: llmengine.CreateFineTuneResponse
selection:
members:
- id

::: llmengine.GetFineTuneResponse
selection:
members:
- id
- fine_tuned_model

::: llmengine.ListFineTunesResponse
selection:
members:
- jobs

::: llmengine.CancelFineTuneResponse
selection:
members:
- success

::: llmengine.GetLLMEndpointResponse
selection:
Expand All @@ -42,19 +63,50 @@
- spec

::: llmengine.ListLLMEndpointsResponse
selection:
members:
- model_endpoints

::: llmengine.DeleteLLMEndpointResponse
selection:
members:
- deleted

::: llmengine.ModelDownloadRequest
selection:
members:
- model_name
- download_format

::: llmengine.ModelDownloadResponse
selection:
members:
- urls

::: llmengine.UploadFileResponse
selection:
members:
- id

::: llmengine.GetFileResponse
selection:
members:
- id
- filename
- size

::: llmengine.GetFileContentResponse
selection:
members:
- id
- content

::: llmengine.ListFilesResponse
selection:
members:
- files

::: llmengine.DeleteFileResponse
selection:
members:
- deleted