Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Lightning-AI/LitServe
/ functions
Functions
984 in github.com/Lightning-AI/LitServe
⨍
Functions
984
◇
Types & classes
226
↳
Endpoints
30
Method
mock_manager
(self)
tests/unit/test_transport.py:98
Function
mock_shutdown
(manager, uvicorn_workers, shutdown_reason="normal")
tests/unit/test_failed_workers.py:33
Function
mock_transport
()
tests/unit/test_loops.py:66
Method
mock_transport
(self)
tests/unit/test_transport.py:126
Method
monitor
()
src/litserve/server.py:1514
Method
name
(self)
src/litserve/mcp.py:372
Function
no_auth
()
src/litserve/server.py:86
Function
off_test_run_batched_streaming_loop
(openai_request_data)
tests/unit/test_loops.py:634
Method
on_after_decode_request
Called after request decoding is completed.
src/litserve/callbacks/base.py:34
Method
on_after_encode_response
Called after response encoding is completed.
src/litserve/callbacks/base.py:40
Method
on_after_predict
Called after prediction is completed.
src/litserve/callbacks/base.py:46
Method
on_after_predict
(self, lit_api: "LitAPI")
src/litserve/callbacks/defaults/metric_callback.py:14
Method
on_after_predict
(self, lit_api)
tests/unit/test_logger.py:124
Method
on_after_setup
Called after setup is completed.
src/litserve/callbacks/base.py:28
Method
on_before_decode_request
Called before request decoding is started.
src/litserve/callbacks/base.py:31
Method
on_before_encode_response
Called before response encoding is started.
src/litserve/callbacks/base.py:37
Method
on_before_predict
Called before prediction is started.
src/litserve/callbacks/base.py:43
Method
on_before_predict
(self, lit_api: "LitAPI")
src/litserve/callbacks/defaults/metric_callback.py:11
Method
on_before_setup
Called before setup is started.
src/litserve/callbacks/base.py:25
Method
on_request
Called when request enters the endpoint function.
src/litserve/callbacks/base.py:55
Method
on_request
(self, active_requests: int, **kwargs)
src/litserve/callbacks/defaults/metric_callback.py:20
Method
on_response
Called when response is generated from the worker and ready to return to the client.
src/litserve/callbacks/base.py:58
Method
on_schedule_task_error
(self, exception: Exception)
src/litserve/loops/continuous_batching_loop.py:284
Method
on_server_end
Called when server terminates.
src/litserve/callbacks/base.py:52
Method
on_server_start
Called before server starts.
src/litserve/callbacks/base.py:49
Function
openai_embedding_request_data
()
tests/conftest.py:359
Function
openai_embedding_request_data_array
()
tests/conftest.py:364
Function
openai_request_data
()
tests/conftest.py:153
Function
openai_request_data_with_audio_flac
(openai_request_data)
tests/conftest.py:242
Function
openai_request_data_with_audio_wav
(openai_request_data)
tests/conftest.py:223
Function
openai_request_data_with_image
()
tests/conftest.py:195
Function
openai_request_data_with_metadata
()
tests/conftest.py:335
Function
openai_request_data_with_response_format
()
tests/conftest.py:295
Function
openai_request_data_with_tools
()
tests/conftest.py:261
Function
openai_response_data
()
tests/conftest.py:170
Method
options_chat_completions
(self, request: Request)
src/litserve/specs/openai.py:497
Method
options_embeddings
(self, request: Request)
src/litserve/specs/openai_embedding.py:295
Method
populate_context
(self, context, request)
src/litserve/specs/openai.py:431
Function
port
()
tests/conftest.py:399
Method
pre_setup
(self, lit_api: LitAPI, spec: Optional[LitSpec] = None)
src/litserve/loops/base.py:217
Method
pre_setup
Check if the lit_api has the necessary methods and if streaming is enabled.
src/litserve/loops/continuous_batching_loop.py:79
Method
pre_setup
(self, lit_api: "LitAPI")
src/litserve/specs/openai_embedding.py:132
Method
pre_setup
(self, lit_api: "LitAPI")
src/litserve/specs/base.py:44
Method
pre_setup
(self, lit_api: "LitAPI")
src/litserve/specs/openai.py:369
Function
predict
(image_data: ImageData)
tests/parity_fastapi/fastapi-server.py:54
Method
predict
Run the model on the input and return or yield the output. When batching is enabled (max_batch_size > 1), this method receives a batc
src/litserve/api.py:270
Method
predict
(self, x)
src/litserve/test_examples/openai_embedding_spec_example.py:10
Method
predict
(self, batch)
src/litserve/test_examples/openai_embedding_spec_example.py:19
Method
predict
(self, x)
src/litserve/test_examples/openai_embedding_spec_example.py:29
Method
predict
(self, x)
src/litserve/test_examples/simple_example.py:13
Method
predict
(self, x)
src/litserve/test_examples/simple_example.py:63
Method
predict
(self, x)
src/litserve/test_examples/simple_example.py:96
Method
predict
(self, x)
tests/conftest.py:50
Method
predict
(self, x)
tests/conftest.py:64
Method
predict
(self, x)
tests/conftest.py:85
Method
predict
(self, x)
tests/simple_server.py:27
Method
predict
(self, x)
tests/simple_server_diff_port.py:25
Method
predict
(self, x)
tests/integration/test_async.py:26
Method
predict
(self, x)
tests/parity_fastapi/ls-server.py:45
Method
predict
(self, x)
tests/unit/test_loops.py:248
Method
predict
(self, x)
tests/unit/test_litapi.py:34
Method
predict
(self, x)
tests/unit/test_simple.py:39
Method
predict
(self, x)
tests/unit/test_simple.py:255
Method
predict
(self, x)
tests/unit/test_simple.py:385
Method
predict
(self, x)
tests/unit/test_lit_server.py:156
Method
predict
(self, x, context)
tests/unit/test_lit_server.py:365
Method
predict
(self, x_batch, context)
tests/unit/test_lit_server.py:375
Method
predict
(self, x_batch, context)
tests/unit/test_lit_server.py:386
Method
predict
(self, x, y, context)
tests/unit/test_lit_server.py:397
Method
predict
(self, x)
tests/unit/test_lit_server.py:590
Method
predict
(self, x)
tests/unit/test_lit_server.py:612
Method
predict
(self, x)
tests/unit/test_lit_server.py:669
Method
predict
(self, x)
tests/unit/test_lit_server.py:698
Method
predict
(self, x)
tests/unit/test_lit_server.py:746
Method
predict
(self, x)
tests/unit/test_lit_server.py:808
Method
predict
(self, x)
tests/unit/test_failed_workers.py:19
Method
predict
(self, x)
tests/unit/test_form.py:29
Method
predict
(self, x)
tests/unit/test_form.py:81
Method
predict
(self, x)
tests/unit/test_compression.py:32
Method
predict
(self, x)
tests/unit/test_schema.py:34
Method
predict
(self, x)
tests/unit/test_auth.py:31
Method
predict
(self, x)
tests/unit/test_torch.py:44
Method
predict
(self, x)
tests/unit/test_specs.py:39
Method
predict
(self, x)
tests/unit/test_specs.py:46
Method
predict
(self, x)
tests/unit/test_specs.py:124
Method
predict
(self, request)
tests/unit/test_specs.py:267
Method
predict
(self, x)
tests/unit/test_specs.py:335
Method
predict
(self, x)
tests/unit/test_specs.py:340
Method
predict
(self, prompt, context)
tests/unit/test_specs.py:360
Method
predict
(self, prompt)
tests/unit/test_specs.py:386
Method
predict
(self, x)
tests/unit/test_specs.py:411
Method
predict
(self, x)
tests/unit/test_specs.py:424
Method
predict
(self, x)
tests/unit/test_specs.py:450
Method
predict
(self, x)
tests/unit/test_specs.py:465
Method
predict
(self, x)
tests/unit/test_logger.py:160
Method
predict
(self, x)
tests/unit/test_multiple_endpoints.py:20
Method
predict
(self, x)
tests/unit/test_callbacks.py:30
Method
predict
(self, x)
tests/unit/test_batch.py:62
Method
predict
(self, x)
tests/unit/test_batch.py:275
Method
predict
(self, x)
tests/unit/test_pydantic.py:36
← previous
next →
501–600 of 984, ranked by callers