Skip to content

xLaszlo/mopenai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mopenai

How to mock OpenAI's client

Relevant technologies:

  • asyncio
  • typer
  • openai
  • tenacity
  • pytest
  • unittest
  • httpx
  • respx
  • uv
  • ruff
  • dotenv

Usage

Set OPENAI_API_KEY in .env

Install uv with

curl -LsSf https://astral.sh/uv/install.sh | sh

Run with

uv run mopenai/main.py "How are you?"

Test with

pytest

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages