Skip to content

armgit / dspy

Public Imported from GitHub
0

DSPy: The framework for programming—not prompting—language models

Python

Oops, great catch from insop!

Connor Shorten9c11eba8e515
diff --git a/dsp/modules/google.py b/dsp/modules/google.py
index 93d6e39c2..2e57f6a97 100644
--- a/dsp/modules/google.py
+++ b/dsp/modules/google.py
@@ -52,7 +52,7 @@ class Google(LM):
Additional arguments to pass to the API provider.
"""
super().__init__(model)
- self.google = genai.configure(api_key="")
+ self.google = genai.configure(api_key=self.api_key)
self.provider = "google"
self.kwargs = {
"model_name": model,