Experiments with OpenAi's GPT-3 using a .NET 7 API.
Using a docker compose file:
⚠️ Remember to change the OpenAI API Key!⚠️
version: "3.8"
services:
api:
image: ghcr.io/tiaringhio/netgpt:latest
container_name: netgpt
ports:
- "7001:80"
restart: always
environment:
- AppSettings__OpenApiUrl=https://api.openai.com/v1/completions
- AppSettings__OpenApiKey=<YOUR-API-KEY-HERE>
# Change value of API KeyThen simply go to http://localhost:7001/swagger/index.html and under the Completions controller click the Try it out button, write your prompt in the appropriate field and click the Execute button (blue button).
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request