Skip to content

Instantly share code, notes, and snippets.

View pyGuru123's full-sized avatar
:electron:
Learning

Prajjwal Pathak pyGuru123

:electron:
Learning
View GitHub Profile
@pyGuru123
pyGuru123 / chatgpt-rev-proxy1.py
Created May 26, 2023 18:51
Using unofficial api key for chatgpt using Reverse Proxy
import requests
api_endpoint = "https://api.pawan.krd/v1/chat/completions"
api_key = "pk-PqVKRIqQYqRDcsFfhTTqYAqTJjaMaykeyNxbXvdiQEaMwjnE"
params = {
"model": "gpt-3.5-turbo",
"max_tokens": 300,
"messages": [
{"role": "user", "content": "Explain quantum computing in cat language using meows"}