Skip to content

Commit

Permalink
added azure openai to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonalaird committed Apr 6, 2024
1 parent 6cdb50f commit 56b0ff9
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ To get started, you can install the library using pip:
pip install vision-agent
```

Ensure you have an OpenAI API key and set it as an environment variable:
Ensure you have an OpenAI API key and set it as an environment variable (if you are
using Azure OpenAI please see the additional setup section):

```bash
export OPENAI_API_KEY="your-api-key"
Expand Down Expand Up @@ -109,3 +110,23 @@ you. For example:


It also has a basic set of calculate tools such as add, subtract, multiply and divide.

### Additional Setup
If you want to use Azure OpenAI models, you can set the environment variable:

```bash
export AZURE_OPENAI_API_KEY="your-api-key"
export AZURE_OPENAI_ENDPOINT="your-endpoint"
```

You can then run Vision Agent using the Azure OpenAI models:

```python
>>> import vision_agent as va
>>> agent = va.agent.VisionAgent(
>>> task_model=va.llm.AzureOpenAILLM(),
>>> answer_model=va.lmm.AzureOpenAILMM(),
>>> reflection_model=va.lmm.AzureOpenAILMM(),
>>> )
```

0 comments on commit 56b0ff9

Please sign in to comment.