Skip to content

Commit

Permalink
vLLM support for Codegen (#886)
Browse files Browse the repository at this point in the history
* Add model parameter for CodeGenGateway in gateway.py file

Signed-off-by: sgurunat <[email protected]>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Signed-off-by: sgurunat <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
sgurunat and pre-commit-ci[bot] authored Nov 12, 2024
1 parent 23c99c1 commit 24b9f03
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions comps/cores/mega/gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ async def handle_request(self, request: Request):
presence_penalty=chat_request.presence_penalty if chat_request.presence_penalty else 0.0,
repetition_penalty=chat_request.repetition_penalty if chat_request.repetition_penalty else 1.2,
streaming=stream_opt,
model=chat_request.model if chat_request.model else None,
)
result_dict, runtime_graph = await self.megaservice.schedule(
initial_inputs={"query": prompt}, llm_parameters=parameters
Expand Down

0 comments on commit 24b9f03

Please sign in to comment.