mirror of
https://github.com/The-Pocket/PocketFlow-Tutorial-Codebase-Knowledge.git
synced 2026-08-29 08:34:31 +08:00
Update call_llm.py
This commit is contained in:
+2
-2
@@ -58,8 +58,8 @@ def call_llm(prompt: str, use_cache: bool = True) -> str:
|
||||
client = genai.Client(
|
||||
api_key=os.getenv("GEMINI_API_KEY", ""),
|
||||
)
|
||||
model = os.getenv("GEMINI_MODEL", "gemini-2.5-pro-exp-03-25")
|
||||
# model = os.getenv("GEMINI_MODEL", "gemini-2.5-flash-preview-04-17")
|
||||
model = os.getenv("GEMINI_MODEL", "gemini-2.5-pro")
|
||||
# model = os.getenv("GEMINI_MODEL", "gemini-2.5-flash")
|
||||
|
||||
response = client.models.generate_content(model=model, contents=[prompt])
|
||||
response_text = response.text
|
||||
|
||||
Reference in New Issue
Block a user