Skip to content

Commit 15d9054

Browse files
committed
docs: an example of using gpt models through azure foundry
1 parent ea6628e commit 15d9054

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ ANTHROPIC_FOUNDRY_API_KEY=your_azure_foundry_key
7979
# Azure Foundry - other models: GPT, GPT-OSS, Mistral etc.
8080
AZURE_FOUNDRY_BASE_URL='https://<your_resource>.openai.azure.com/openai/v1/'
8181
AZURE_FOUNDRY_API_KEY=your_azure_foundry_key
82+
AZURE_FOUNDRY_API_VERSION='2024-05-01-preview'
8283
# Certain MCPs require API keys
8384
GITHUB_TOKEN=your_personal_github_token # not ssh keys
8485
```
@@ -97,6 +98,7 @@ config["temperature"] = 0.7
9798
agent = BaseAgent(llm="gpt-4", config=config) # OpenAI
9899
agent = BaseAgent(llm="claude-sonnet-4-5-20250929", config=config) # Anthropic
99100
# You can specify the LLM provider source
101+
agent = BaseAgent(llm='gpt-5.1', source='AzureOpenAI')
100102
agent = BaseAgent(llm='claude-sonnet-4-5', source='AnthropicFoundry')
101103
```
102104

0 commit comments

Comments
 (0)