Skip to content

Commit 1ed6549

Browse files
authored
chore: fix typos and broken links (#522)
Signed-off-by: Keming <[email protected]>
1 parent 7fbdca0 commit 1ed6549

File tree

5 files changed

+5
-8
lines changed

5 files changed

+5
-8
lines changed

.github/workflows/links.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- uses: actions/checkout@v4
2323

2424
- name: Link Checker
25-
uses: lycheeverse/lychee-action@v1.9.3
25+
uses: lycheeverse/lychee-action@v1
2626
with:
2727
fail: true
2828
args: --verbose --no-progress --format detailed .

docs/source/examples/embedding.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# OpenAI compatible embedding service
22

3-
This example shows how to create an embedding service that is compatible with the [OpenAI API](https://platform.openai.com/docs/api-reference/embeddings/object).
3+
This example shows how to create an embedding service that is compatible with the [OpenAI API](https://platform.openai.com/docs/api-reference/embeddings).
44

55
In this example, we use the embedding model from [HuggingFace LeaderBoard](https://huggingface.co/spaces/mteb/leaderboard).
66

mosec/dry_run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ def terminate(self, signum, framestack):
174174
self.shutdown_notify.set()
175175

176176
def run(self):
177-
"""Execute thr dry run process."""
177+
"""Execute the dry run process."""
178178
for endpoint, runtimes in self.router.items():
179179
logger.info(
180180
"init dry run for endpoint %s with %s",

mosec/mixin/typed_worker.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,8 @@ def deserialize(self, data: Any) -> Any:
3838
"""Deserialize and validate request with msgspec."""
3939
import msgspec
4040

41-
if not self._input_typ:
41+
if self._input_typ is None:
4242
self._input_typ = parse_func_type(self.forward, ParseTarget.INPUT)
43-
if not issubclass(self._input_typ, msgspec.Struct):
44-
# skip other annotation type
45-
return super().deserialize(data)
4643

4744
try:
4845
return msgspec.msgpack.decode(data, type=self._input_typ)

src/routes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const RESPONSE_EMPTY: &[u8] = b"no data provided";
3535
const RESPONSE_TOO_LARGE: &[u8] = b"request body is too large";
3636
const RESPONSE_SHUTDOWN: &[u8] = b"gracefully shutting down";
3737
const DEFAULT_RESPONSE_MIME: &str = "application/json";
38-
const DEFAULT_MAX_REQUEST_SIZE: usize = 10 * 1024 * 1024; // 10MB
38+
const DEFAULT_MAX_REQUEST_SIZE: usize = 10 * 1024 * 1024; // 10MiB
3939

4040
fn build_response(status: StatusCode, content: Bytes) -> Response<Body> {
4141
Response::builder()

0 commit comments

Comments
 (0)