Skip to main content

Other LLM Providers

Beyond Azure OpenAI, OpenAI, and Anthropic, Microsoft Agent Framework supports several additional providers including AWS Bedrock, Ollama for local models, GitHub Copilot, and more.

Supported Providers

AWS Bedrock

Access models via Amazon Bedrock

Ollama

Run models locally with Ollama

GitHub Copilot

Use GitHub Copilot models

Azure AI Foundry Local

Local model inference via Foundry

AWS Bedrock

AWS Bedrock provides access to foundation models from multiple providers through a single API.

Installation

Authentication

Bedrock uses AWS credentials:

Basic Usage

Available Models

Bedrock provides access to models from multiple providers:
Model availability varies by AWS region. Check the Bedrock documentation for details.

Configuration

Function Calling

Not all Bedrock models support function calling. Claude 3 models have excellent function calling support.

Ollama

Ollama enables running large language models locally on your machine.

Installation

  1. Install Ollama from ollama.com
  2. Pull a model: ollama pull llama3.2
  3. Install the framework package:

Basic Usage

Configuration

Available Models

Popular models available via Ollama:
Install models with ollama pull <model-name>. Not all models support function calling - check model capabilities before using tools.

Multimodal Models

Some Ollama models support vision:
Multimodal models like llava and llava-phi3 support image inputs. Pull them with ollama pull llava.

GitHub Copilot

Use GitHub Copilot models through the Copilot CLI.

Installation

  1. Install GitHub Copilot CLI
  2. Install the framework package:

Basic Usage

Configuration

Available Models

GitHub Copilot provides access to multiple models:
  • gpt-5 - Latest GPT model
  • claude-sonnet-4 - Anthropic Claude
  • o1-preview - OpenAI reasoning model
  • o3-mini - Compact reasoning model
Model availability depends on your GitHub Copilot subscription and organization settings.

Azure AI Foundry Local

Run models locally via Azure AI Foundry for development and testing.

Installation

Basic Usage

Choosing a Provider

Here’s guidance on when to use each provider:
  • You’re already using AWS infrastructure
  • You need access to multiple model providers
  • You want managed scaling and availability
  • You require AWS compliance features
  • You need region-specific deployments
  • You want to run models locally
  • You need offline operation
  • You’re concerned about data privacy
  • You want to avoid API costs
  • You’re doing local development
  • You need fast iteration without rate limits
  • You have a GitHub Copilot subscription
  • You want access to multiple models through one API
  • You’re building developer tools
  • You want model selection flexibility
  • You’re developing Azure AI Foundry applications
  • You need local testing before cloud deployment
  • You want to prototype without cloud costs
  • You’re working offline or in restricted environments

Provider Comparison

Best Practices

  1. Use IAM roles for authentication in production
  2. Enable CloudWatch logging for debugging
  3. Choose region based on data residency requirements
  4. Monitor costs - different models have different pricing
  5. Test model availability in your target region
  1. Ensure sufficient RAM for your chosen model
  2. Use GPU acceleration when available
  3. Keep Ollama updated for latest models
  4. Test model capabilities before production use
  5. Not all models support function calling
  6. Consider model size vs. quality tradeoffs
  1. Verify your organization allows Copilot use
  2. Check model availability for your subscription
  3. Monitor token usage
  4. Implement retry logic for rate limits
  5. Test fallback to other providers
  1. Only use for development and testing
  2. Transition to cloud for production
  3. Test with same models as production
  4. Monitor resource usage
  5. Keep dependencies updated

Troubleshooting

  1. Verify AWS credentials are configured correctly
  2. Check IAM permissions for Bedrock access
  3. Ensure the model is available in your region
  4. Verify network connectivity to AWS
  5. Check CloudWatch logs for detailed errors
  1. Verify Ollama is running: ollama serve
  2. Check if the model is pulled: ollama list
  3. Verify endpoint URL (default: http://localhost:11434)
  4. Check system resources (RAM, GPU)
  5. Review Ollama logs for errors
  1. Verify Copilot CLI is installed
  2. Check authentication: gh auth status
  3. Verify subscription is active
  4. Check model availability
  5. Review CLI logs for details

Next Steps

Provider Comparison

Compare all available providers

Function Tools

Add function calling capabilities

Workflows

Build multi-agent workflows

Hosting & Deployment

Deploy agents to production