Closed HOCKNAS closed 7 months ago
Container Logs:
Starting the application...
> chatgpt@1.0.0 start
> tsc && node dist/app.js
Request: POST /v1/chat/completions 1 messages (stream-disabled)
💡 Server is running at http://localhost:3040
🔗 Local Base URL: http://localhost:3040/v1
🔗 Local Endpoint: http://localhost:3040/v1/chat/completions
🔗 Public Base URL: https://yang-synthesis-writings-shoe.trycloudflare.com/v1
🔗 Public Endpoint: https://yang-synthesis-writings-shoe.trycloudflare.com/v1/chat/completions
📝 Author: Pawan.Krd
🌐 Discord server: https://discord.gg/pawan
🌍 GitHub Repository: https://github.com/PawanOsman/ChatGPT
💖 Don't forget to star the repository if you like this project!
Request: POST /v1/chat/completions 1 messages (stream-disabled)
Request: POST /v1/chat/completions 1 messages (stream-disabled)
Request: POST /v1/chat/completions 1 messages (stream-disabled)
Request: POST /v1/chat/completions 1 messages (stream-disabled)
Request: POST /v1/chat/completions 1 messages (stream-disabled)
Article Related:
Solution: Wait for 30 to 60 minutes without stopping the container.
Steps:
docker run -dp 3040:3040 pawanosman/chatgpt:latest
openai.api_key = 'anything' openai.base_url = "http://localhost:3040/v1/"
completion = openai.chat.completions.create( model="gpt-3.5-turbo", messages=[ {"role": "user", "content": "How do I list all files in a directory using Python?"}, ], )
print(completion.choices[0].message.content)