mirror of
https://github.com/NousResearch/atropos.git
synced 2026-04-24 17:04:55 +00:00
update openai/trl_vllm server with new fn
This commit is contained in:
parent
c36ec29656
commit
134cbc09d0
3 changed files with 24 additions and 9 deletions
|
|
@ -173,7 +173,7 @@ class SGLangServer(APIServer):
|
|||
import aiohttp
|
||||
async with aiohttp.ClientSession() as session:
|
||||
async with session.post(
|
||||
f"{self.config.base_url}/generate",
|
||||
f"{self.config.base_url.replace('/v1', '')}/generate",
|
||||
json=request_data,
|
||||
headers={"Authorization": f"Bearer {self.config.api_key}"} if self.config.api_key else {},
|
||||
timeout=aiohttp.ClientTimeout(total=self.config.timeout)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue