slipstream / services /llm.py
s-ttp's picture
Move Top AI Picks of the Month to Signalflow; Slipstream shows the fund only
d6a28c7 verified
Raw History Blame Contribute Delete
563 Bytes
"""Gemini call used by the fund's AI event-risk overlay (risk_screen.py).
The picks-panel screeners (Anthropic/OpenAI fallbacks, validate_picks) moved to the Signalflow
Space with the "Top AI Picks of the Month" panels."""
import config
def _call_gemini(prompt: str) -> str:
from google import genai
client = genai.Client(api_key=config.GEMINI_API_KEY)
resp = client.models.generate_content(
model=config.GEMINI_MODEL,
contents=prompt,
config={"temperature": 0, "max_output_tokens": 4000},
)
return resp.text or ""