M4R774 / bobweb2

Telegram botti piristämään elämää
MIT License
8 stars 1 forks source link

Add gpt #217

Closed taturl closed 1 year ago

taturl commented 1 year ago

In this pull request, we add capability to use OpenAI API with new command !gpt [prompt]

The gpt is set up to be a helpful assistant to answer your questions.

The response contains also the cost of the query that is billed on the API key owner.

Reference: https://openai.com/pricing https://platform.openai.com/account/usage https://platform.openai.com/docs/introduction/overview https://github.com/openai/openai-python https://github.com/openai/tiktoken

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

86.4% 86.4% Coverage
0.0% 0.0% Duplication