Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tenapato/local-gpt
A personal project to use openai api in a local environment for coding
https://github.com/tenapato/local-gpt
docker gpt-4 python
Last synced: 4 days ago
JSON representation
A personal project to use openai api in a local environment for coding
- Host: GitHub
- URL: https://github.com/tenapato/local-gpt
- Owner: tenapato
- Created: 2023-08-18T01:58:16.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-20T22:50:02.000Z (over 1 year ago)
- Last Synced: 2023-09-21T12:14:59.136Z (over 1 year ago)
- Topics: docker, gpt-4, python
- Language: Python
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Local GPT
A personal project to use openai api in a local environment as an assitant for developers
## How to run
```shell
docker build -t assistant-api .
``````shell
docker run -p 5001:5001 -e OPEN_AI_KEY= assistant-api
```## How to use
```shell
curl -X POST -H "Content-Type: application/json" -d '{"prompt": "write a typescript code that creates a basic encryption function that uses sha256"}' "http://localhost:5001/api/answer?gpt4=false"
```> You can also define here if you want to use gpt-4 model instead