mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 03:34:10 +00:00
fix case when gemini is used
This commit is contained in:
parent
7891b3742c
commit
c8fe600dbf
11 changed files with 47 additions and 13 deletions
|
@ -184,10 +184,10 @@ class VertexFineTuningAPI(VertexLLM):
|
|||
verbose_logger.debug(
|
||||
"creating fine tuning job, args= %s", create_fine_tuning_job_data
|
||||
)
|
||||
|
||||
_auth_header, vertex_project = self._ensure_access_token(
|
||||
credentials=vertex_credentials,
|
||||
project_id=vertex_project,
|
||||
custom_llm_provider="vertex_ai_beta",
|
||||
)
|
||||
|
||||
auth_header, _ = self._get_token_and_url(
|
||||
|
@ -257,10 +257,10 @@ class VertexFineTuningAPI(VertexLLM):
|
|||
vertex_credentials: str,
|
||||
request_route: str,
|
||||
):
|
||||
|
||||
_auth_header, vertex_project = await self._ensure_access_token_async(
|
||||
credentials=vertex_credentials,
|
||||
project_id=vertex_project,
|
||||
custom_llm_provider="vertex_ai_beta",
|
||||
)
|
||||
auth_header, _ = self._get_token_and_url(
|
||||
model="",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue