Skip to content

chuycc/openai-python-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

openai-python-examples

Examples using official OpenAI Python API library

Use quit, exit or bye commands to end conversation on conversation and persuasion examples.

Goals

Confirm:

  • Connection
  • Personalization
  • Conversation
  • Persuasion

Installation

Install OpenAI Python API library

pip install openai

Set OPENAI_API_KEY environment variable. Replace your-api-key-here with your actual OpenAI API key.

export OPENAI_API_KEY=your-api-key-here

Important: Prototype Code Only

These examples are quick prototypes designed to validate core assumptions and demonstrate key features. They are not production-ready and have several limitations:

  • Lack proper design patterns and architectural best practices
  • Missing comprehensive error handling and validation
  • No security considerations or performance optimizations
  • Limited testing and documentation

Do not deploy this code to production environments. Use these examples as learning materials and starting points for properly architected solutions.

References

About

Examples using official OpenAI Python API library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages