https://github.com/gptscript-ai/gateway-provider
https://github.com/gptscript-ai/gateway-provider
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/gptscript-ai/gateway-provider
- Owner: gptscript-ai
- License: apache-2.0
- Created: 2024-07-29T18:12:01.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-10T20:31:46.000Z (almost 2 years ago)
- Last Synced: 2025-06-14T16:37:46.633Z (12 months ago)
- Language: Python
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GPTScript Gateway Provider
## Usage Example
```
gptscript --default-model='gpt-4o from github.com/gptscript-ai/gateway/provider' examples/helloworld.gpt
```
## Development
* You need a GPTSCRIPT_GATEWAY_API_KEY set in your environment.
```
export GPTSCRIPT_GATEWAY_API_KEY=
```
Run using the following commands
```
python -m venv .venv
source ./.venv/bin/activate
pip install --upgrade -r requirements.txt
./run.sh
```
```
export OPENAI_BASE_URL=http://127.0.0.1:8000/v1
export GPTSCRIPT_DEBUG=true
gptscript --default-model=openai examples/bob.gpt
```