11---
22title : OpenAI agent README
33description : Learn how to use the OpenAI agent in AI Shell.
4- ms.date : 11/18/2024
4+ ms.date : 03/03/2025
55ms.topic : how-to
66---
7- # OpenAI Agent
7+ # OpenAI agent
88
99This agent is designed to provide a user-friendly platform for interacting with OpenAI services. It
1010can connect to a public OpenAI service or a private deployment of the Azure OpenAI service. We
@@ -13,12 +13,12 @@ recommend using an Azure OpenAI deployment for enhanced security and privacy.
1313## Prerequisites
1414
1515- For OpenAI, you need the ** Model Name** and ** API Key** to use the agent.
16- - [ OpenAI API Key] [ 03 ]
17- - [ OpenAI Model] [ 04 ]
16+ - [ OpenAI API Key] [ 09 ]
17+ - [ OpenAI Model] [ 10 ]
1818
1919- For Azure OpenAI Service, you need the ** Endpoint** , ** Deployment Name** , ** Model Name** , and
2020 ** API Key** to use the agent.
21- - [ Access to Azure OpenAI] [ 02 ]
21+ - [ Access to Azure OpenAI] [ 03 ]
2222 - [ Create an Azure OpenAI deployment] [ 01 ]
2323
2424## Configuration
@@ -68,19 +68,20 @@ editor. Update the file based on the following example:
6868```
6969
7070> [ !NOTE]
71- > The endpoint for the Azure OpenAI configuration does not need a full endpoint including the deployment,
72- > for example you can just use the following endpoint format, ` https://<YourServiceName>.openai.azure.com ` .
71+ > The endpoint for the Azure OpenAI configuration does not need a full endpoint including the
72+ > deployment, for example you can just use the following endpoint format,
73+ > ` https://<YourServiceName>.openai.azure.com ` .
7374
7475## GPT
7576
76- GPTs are tailored versions of base OpenAI models. You use a GPT to provide focused responses based on
77- the system prompt you give the model. GPTs are configured in the agent's settings file. Each GPT
77+ GPTs are tailored versions of base OpenAI models. You use a GPT to provide focused responses based
78+ on the system prompt you give the model. GPTs are configured in the agent's settings file. Each GPT
7879configuration includes the name, description, targeted OpenAI model, and system prompt for
7980interaction. The system prompts can be customized to support specific scenarios. Each configuration
8081allows you to create distinct GPTs tailored to a specific domain or scenario. Furthermore, you can
8182select different OpenAI models for each GPT as required.
8283
83- ## Command
84+ ### Command
8485
8586The command ` /gpt ` is provided to make it easy to manage the GPTs.
8687
@@ -105,8 +106,33 @@ Commands:
105106 use < GPT> Specify a GPT to use, or choose one from the available GPTs.
106107```
107108
109+ ## Support for other OpenAI-compatible models
110+
111+ With the release of AI Shell v1.0.0-preview.2, the ` openai-gpt ` agent extends support to third party
112+ models that follow the OpenAI API specifications, allowing for a more flexible AI experience. Many
113+ of these models are open source tools for running SLMs and LLMs locally. The ` openai-gpt ` agent nows
114+ supports the following additional models:
115+
116+ - [ ** Ollama** ] [ 08 ]
117+ - [ ** LM Studio** ] [ 06 ]
118+ - [ ** Deepseek** ] [ 04 ]
119+ - [ ** LocalAI** ] [ 07 ]
120+ - [ ** Google Gemini** ] [ 02 ]
121+ - [ ** Grok** ] [ 05 ]
122+
123+ To use these models, you only need to configure the ` endpoint ` , ` key ` and ` model name ` in the agent
124+ config file. The following ` openai.agents.config ` file contains example configurations for two of
125+ the new AI providers. For more information about endpoints and model names, see to the documentation
126+ for the specific model.
127+
108128<!-- link references -->
109129[ 01 ] : /azure/ai-services/openai/how-to/create-resource?pivots=web-portal
110- [ 02 ] : https://aka.ms/oai/access?azure-portal=true
111- [ 03 ] : https://platform.openai.com/api-keys
112- [ 04 ] : https://platform.openai.com/docs/models
130+ [ 02 ] : https://ai.google.dev/gemini-api/docs/openai
131+ [ 03 ] : https://aka.ms/oai/access?azure-portal=true
132+ [ 04 ] : https://api-docs.deepseek.com/
133+ [ 05 ] : https://docs.x.ai/docs/overview#migrating-from-another-llm-provider
134+ [ 06 ] : https://lmstudio.ai/docs/api/openai-api
135+ [ 07 ] : https://localai.io/
136+ [ 08 ] : https://ollama.com/blog/openai-compatibility
137+ [ 09 ] : https://platform.openai.com/api-keys
138+ [ 10 ] : https://platform.openai.com/docs/models
0 commit comments