Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -984,6 +984,7 @@ VLRecognition:
genai_config:
backend: vllm-server
server_url: http://127.0.0.1:8118/v1
api_key: "secret"
```

之后,可以使用修改好的配置文件进行产线调用。例如通过 CLI 调用:
Expand Down
1 change: 1 addition & 0 deletions paddlex/inference/models/base/predictor/base_predictor.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ def __init__(
self._genai_client = GenAIClient(
backend=genai_config.backend,
base_url=genai_config.server_url,
api_key=genai_config.api_key,
max_concurrency=genai_config.max_concurrency,
model_name=model_name,
**(genai_config.client_kwargs or {}),
Expand Down
1 change: 1 addition & 0 deletions paddlex/inference/models/common/genai.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class GenAIConfig(BaseModel):
"native"
)
server_url: Optional[str] = None
api_key: Optional[str] = "null"
max_concurrency: int = 200
client_kwargs: Optional[Dict[str, Any]] = None

Expand Down