mirror of
https://github.com/acon96/home-llm.git
synced 2026-01-08 21:28:05 -05:00
Removed extra version segement from OpenAI API call
This commit is contained in:
@@ -66,7 +66,7 @@ class TextGenerationWebuiClient(GenericOpenAIAPIClient):
|
||||
headers["Authorization"] = f"Bearer {self.admin_key}"
|
||||
|
||||
async with session.get(
|
||||
f"{self.api_host}/v1/internal/model/info",
|
||||
f"{self.api_host}/internal/model/info",
|
||||
headers=headers
|
||||
) as response:
|
||||
response.raise_for_status()
|
||||
@@ -80,7 +80,7 @@ class TextGenerationWebuiClient(GenericOpenAIAPIClient):
|
||||
_LOGGER.info(f"Model is not {model_name} loaded on the remote backend. Loading it now...")
|
||||
|
||||
async with session.post(
|
||||
f"{self.api_host}/v1/internal/model/load",
|
||||
f"{self.api_host}/internal/model/load",
|
||||
json={
|
||||
"model_name": model_name,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user