Skip to content

Commit 42b33d0

Browse files
committed
chore: Notion 동기화 2026-06-26 14:00
1 parent 1ac8ead commit 42b33d0

4 files changed

Lines changed: 68 additions & 8 deletions

docs/contribute/.notion-sync.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,23 @@
88
},
99
"38ae15b4-0359-804a-a378-d45e377e5898": {
1010
"file": "docs/contribute/역슬래시-이스케이프-예외처리-수정.md",
11-
"last_edited": "2026-06-25T09:14:00.000Z",
12-
"content_hash": "e42b83f584a9a280a2fda9240e1647d775c66fe49d0df77fe1afbdd07299e990",
11+
"last_edited": "2026-06-26T04:38:00.000Z",
12+
"content_hash": "babdf303a40b178812c4dca33531f3ccba5817e6d057c70e1c76c18baa4a8eb6",
1313
"order": 2,
1414
"parent_id": null
1515
},
1616
"38be15b4-0359-809e-b2f8-f28527769213": {
1717
"file": "docs/contribute/프런트엔드-test-cli-argspy에서-잘못된-cli-인자-유효성-검사-테스트를-수정.md",
18-
"last_edited": "2026-06-26T01:10:00.000Z",
18+
"last_edited": "2026-06-26T04:37:00.000Z",
1919
"content_hash": "fe69133f1ae3a605070d2a13974d084e53fa9147e3a8effb301c666c91bee1c3",
2020
"order": 3,
2121
"parent_id": null
22+
},
23+
"38be15b4-0359-80e3-8888-cbb1deee98a2": {
24+
"file": "docs/contribute/프런트엔드-v1completions-엔드포인트에서-bad-words를-지원.md",
25+
"last_edited": "2026-06-26T04:19:00.000Z",
26+
"content_hash": "9ccd6e68baa3072671c27596d0667a7054d1b50958e7a2ba3a0cb41ed979f32a",
27+
"order": 4,
28+
"parent_id": null
2229
}
2330
}

docs/contribute/역슬래시-이스케이프-예외처리-수정.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@ title: "역슬래시 이스케이프 예외처리 수정"
44
sidebar_position: 2
55
slug: "2"
66
description: "make_valid_python의 역슬래시 이스케이프 예외 처리 수정"
7-
tags: [ai]
7+
tags: [PR]
88
keywords: [역슬래시 이스케이프 예외처리 수정]
99
last_update:
10-
date: 2026-06-25
10+
date: 2026-06-26
1111
---
1212

13-
`make_valid_python` (in `vllm/tool_parsers/utils.py` )은 스트리밍 중에 불완전한 파이썬 도구 호출 표현식을 닫기 위해 누락된 닫는 문자를 추가하는 데 사용됩니다. 닫는 따옴표가 문자열을 종료하는지 여부를 판단하기 위해 바로 앞의 문자 하나만 검사합니다.
14-
15-
1613
[https://github.com/vllm-project/vllm/pull/46708](https://github.com/vllm-project/vllm/pull/46708)
1714

15+
### **목적**
16+
17+
`make_valid_python` (in `vllm/tool_parsers/utils.py` )은 스트리밍 중에 불완전한 파이썬 도구 호출 표현식을 닫기 위해 누락된 닫는 문자를 추가하는 데 사용됩니다. 닫는 따옴표가 문자열을 종료하는지 여부를 판단하기 위해 바로 앞의 문자 하나만 검사합니다.
1818

1919
```text
2020
if index > 0 and text[index - 1] == "\\":

docs/contribute/프런트엔드-test-cli-argspy에서-잘못된-cli-인자-유효성-검사-테스트를-수정.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ id: 프런트엔드-test-cli-argspy에서-잘못된-cli-인자-유효성-검사-
33
title: "[프런트엔드] test_cli_args.py에서 잘못된 CLI 인자 유효성 검사 테스트를 수정"
44
sidebar_position: 3
55
slug: "3"
6+
tags: [PR]
7+
keywords: [PR]
68
last_update:
79
date: 2026-06-26
810
---
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
---
2+
id: 프런트엔드-v1completions-엔드포인트에서-bad-words를-지원
3+
title: "[프런트엔드] /v1/completions 엔드포인트에서 bad_words를 지원"
4+
sidebar_position: 4
5+
slug: "4"
6+
last_update:
7+
date: 2026-06-26
8+
---
9+
10+
11+
[https://github.com/vllm-project/vllm/pull/46793](https://github.com/vllm-project/vllm/pull/46793)
12+
13+
### **목적**
14+
15+
채팅 자동 완성 엔드포인트( `/v1/chat/completions` ) 는 `bad_words` 필드를 노출하고 이를 로 전달 `SamplingParams` 하지만, 기존 자동 완성 엔드포인트( ) 는 `/v1/completions` 그렇지 않습니다 . 이는 기능 동등성 격차입니다. 자동 완성 엔드포인트 사용자는 특정 단어를 숨길 수 없습니다.`SamplingParamsbad_words`
16+
17+
이 PR은 기존 채팅 구현( 샘플링 매개변수 블록 및 의 필드 ) 을 반영하여 `bad_words` 필드를 추가하고 `CompletionRequest` 이를 통해 연결합니다 .`to_sampling_params()chat_completion/protocol.pybad_words=self.bad_wordsto_sampling_params`
18+
19+
**중복이 아닙니다.** `bad_words`  (제목/본문), `bad_words CompletionRequest` , 및 에 대한 열린 PR을 검색해 보았지만, `completion bad_words parity` 기존 `bad_words` PR은 토크나이저 변환/캐싱 버그에 관한 것이며, 필드를 완성 엔드포인트에 추가하는 PR은 없습니다.
20+
21+
### **테스트 플랜**
22+
23+
```text
24+
python -m pytest tests/entrypoints/openai/completion/test_completion.py \
25+
-k "bad_words" -v
26+
# lint
27+
ruff check vllm/entrypoints/openai/completion/protocol.py \
28+
tests/entrypoints/openai/completion/test_completion.py
29+
ruff format --check vllm/entrypoints/openai/completion/protocol.py \
30+
tests/entrypoints/openai/completion/test_completion.py
31+
```
32+
33+
CPU 전용 유닛 테스트 두 개를 추가했습니다.
34+
35+
- `test_completion_request_bad_words_to_sampling_paramsbad_wordsSamplingParams`
36+
37+
38+
는 다음으로 전달됩니다
39+
40+
.
41+
42+
- `test_completion_request_bad_words_default_empty`
43+
— 기본적으로 빈 목록으로 설정됩니다(채팅과 동일).
44+
45+
### **시험 결과**
46+
47+
```
48+
2 passed
49+
ruff: All checks passed! / 2 files already formatted
50+
```
51+

0 commit comments

Comments
 (0)