Skip to content

Gemma4 and dep upgrades#69

Merged
madebygps merged 2 commits intoAzure-Samples:mainfrom
madebygps:gemma4-and-dep-upgrades
Apr 9, 2026
Merged

Gemma4 and dep upgrades#69
madebygps merged 2 commits intoAzure-Samples:mainfrom
madebygps:gemma4-and-dep-upgrades

Conversation

@madebygps
Copy link
Copy Markdown
Collaborator

Ollama model update:

  • Changed the default Ollama model from qwen3.5:9b to gemma4:e2b in .devcontainer/ollama/devcontainer.json, .env-sample, .env.sample.ollama, agents/agentframework_http.py, agents/agentframework_learn.py, agents/langchainv1_github.py, and agents/langchainv1_http.py to ensure consistency across development, environment configuration, and runtime code. [1] [2] [3] [4] [5] [6] [7]

  • Updated documentation in both English and Spanish README.md files to reflect the new default model (gemma4:e2b) for Codespaces setup instructions. [1] [2]

Dependency updates:

  • Upgraded langchain-core, langchain, langchain-openai, and langchain-mcp-adapters to newer versions in pyproject.toml for improved compatibility and features.

Development environment improvements:

  • Modified the postCreateCommand in .devcontainer/ollama/devcontainer.json to include uv run prek install, ensuring necessary pre-commit hooks or dependencies are installed on container creation.

Prompt improvements:

  • Changed the example query in agents/agentframework_learn.py to a more relevant Azure web app hosting comparison.
  • Updated the agent creation in agents/langchainv1_github.py to use the system_prompt parameter instead of prompt for clarity and correctness.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the project’s default Ollama model to gemma4:e2b across devcontainer setup, environment samples, docs, and runtime agent code, and bumps LangChain-related dependencies to newer patch versions.

Changes:

  • Switched the default Ollama model from qwen3.5:9b to gemma4:e2b in env samples, devcontainer config, docs, and agent implementations.
  • Upgraded LangChain-family dependencies (langchain, langchain-core, langchain-openai, langchain-mcp-adapters) and refreshed uv.lock.
  • Enhanced the Ollama devcontainer postCreateCommand to install prek hooks during container creation.
Show a summary per file
File Description
uv.lock Locks updated LangChain/LangGraph patch versions and dependency specifiers.
pyproject.toml Raises minimum versions for LangChain-related dependencies.
.devcontainer/ollama/devcontainer.json Pulls gemma4:e2b by default and runs uv run prek install on create.
.env-sample Updates default OLLAMA_MODEL to gemma4:e2b.
.env.sample.ollama Updates default OLLAMA_MODEL to gemma4:e2b for Ollama setup.
README.md Codespaces instructions updated to reference gemma4:e2b.
spanish/README.md Spanish Codespaces instructions updated to reference gemma4:e2b.
agents/langchainv1_http.py Updates Ollama default model used by ChatOpenAI.
agents/langchainv1_github.py Updates Ollama default model and switches agent creation to system_prompt.
agents/agentframework_http.py Updates Ollama default model used by OpenAIResponsesClient.
agents/agentframework_learn.py Updates Ollama default model and refreshes the example query text.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 10/11 changed files
  • Comments generated: 0

@madebygps madebygps merged commit 89e63f8 into Azure-Samples:main Apr 9, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants