fix: replace GEMINI_API_KEY with GOOGLE_API_KEY as per new SDK
This commit is contained in:
parent
6ec531700b
commit
aa4912334b
3 changed files with 3 additions and 3 deletions
|
|
@ -9,7 +9,7 @@ OPENAI_API_KEY=
|
|||
|
||||
# GEMINI
|
||||
# this is the best model for long context and podcast generation
|
||||
# GEMINI_API_KEY=
|
||||
# GOOGLE_API_KEY=
|
||||
|
||||
# VERTEXAI
|
||||
# VERTEX_PROJECT=my-google-cloud-project-name
|
||||
|
|
|
|||
|
|
@ -108,7 +108,7 @@ class PodcastConfig(ObjectModel):
|
|||
api_key_label = "ANTHROPIC_API_KEY"
|
||||
llm_model_name = self.transcript_model
|
||||
elif self.transcript_model_provider == "gemini":
|
||||
api_key_label = "GEMINI_API_KEY"
|
||||
api_key_label = "GOOGLE_API_KEY"
|
||||
llm_model_name = self.transcript_model
|
||||
|
||||
if self.provider == "gemini":
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ provider_status["vertexai-anthropic"] = (
|
|||
and os.environ.get("VERTEX_LOCATION") is not None
|
||||
and os.environ.get("GOOGLE_APPLICATION_CREDENTIALS") is not None
|
||||
)
|
||||
provider_status["gemini"] = os.environ.get("GEMINI_API_KEY") is not None
|
||||
provider_status["gemini"] = os.environ.get("GOOGLE_API_KEY") is not None
|
||||
provider_status["openrouter"] = (
|
||||
os.environ.get("OPENROUTER_API_KEY") is not None
|
||||
and os.environ.get("OPENAI_API_KEY") is not None
|
||||
|
|
|
|||
Loading…
Reference in a new issue