A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.
Python artificial-intelligencedagdata-sciencedata-visualizationdataflowdeveloper-toolsmachine-learningnotebookspipelinepythonreactivesqlweb-app
Support system message for Gemini (#4869)
Guy Rosin5c6766ebd32b
diff --git a/marimo/_ai/llm/_impl.py b/marimo/_ai/llm/_impl.pyindex 33327e105a..886ebc33e2 100644--- a/marimo/_ai/llm/_impl.py+++ b/marimo/_ai/llm/_impl.py@@ -181,7 +181,6 @@ class anthropic(ChatModel):self.system_message = system_messageself.api_key = api_keyself.base_url = base_url- self.system_message = system_message@propertydef _require_api_key(self) -> str:@@ -313,6 +312,7 @@ class google(ChatModel):genai.configure(api_key=self._require_api_key)client = genai.GenerativeModel(model_name=self.model,+ system_instruction=self.system_message,generation_config=genai.GenerationConfig(max_output_tokens=config.max_tokens,temperature=config.temperature,