https://github.com/gptscript-ai/azure-other-provider
Azure Model Provider for GPTScript
https://github.com/gptscript-ai/azure-other-provider
Last synced: 11 months ago
JSON representation
Azure Model Provider for GPTScript
- Host: GitHub
- URL: https://github.com/gptscript-ai/azure-other-provider
- Owner: gptscript-ai
- Created: 2024-03-07T22:16:20.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-15T22:52:34.000Z (almost 2 years ago)
- Last Synced: 2024-07-16T02:58:08.387Z (almost 2 years ago)
- Language: Python
- Homepage:
- Size: 53.7 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
1. You must be authenticated with the Azure CLI
2. You need the env variable `AZURE_SUBSCRIPTION_ID` to be configured
3. You need the env variable `GPTSCRIPT_AZURE_RESOURCE_GROUP` to be configured
4. You need the env variable `GPTSCRIPT_AZURE_WORKSPACE` to be configured
```
az login
export AZURE_SUBSCRIPTION_ID=
export GPTSCRIPT_AZURE_RESOURCE_GROUP=
export GPTSCRIPT_AZURE_WORKSPACE=
```
## Usage Example
```
gptscript --default-model='Mistral-large from github.com/gptscript-ai/azure-other-provider' examples/helloworld.gpt
```
## Development
Run using the following commands
```
python -m venv .venv
source ./.venv/bin/activate
pip install -r requirements.txt
./run.sh
```
```
export OPENAI_BASE_URL=http://127.0.0.1:8000/v1
export GPTSCRIPT_DEBUG=true
gptscript --default-model=Mistral-large examples/bob.gpt
```