Skip to main content

Generate fake data that resembles fields in OpenAI API responses

Project description

faker-openai-api-provider

Generate fake data that resembles fields in OpenAI API responses

[!IMPORTANT] This does not generate fake AI responses/completions

API

  • openai().chat.completion.id() -> str
  • openai().file.id() -> str
  • openai().beta.assistant.id() -> str
  • openai().beta.thread.id() -> str
  • openai().beta.thread.message.id() -> str
  • openai().beta.thread.run.id() -> str
  • openai().beta.thread.run.step.id() -> str
  • openai().beta.thread.run.step.step_details.tool_call.id() -> str

Usage

from faker import Faker
from faker_openai_api_provider import OpenAiApiProvider

fake = Faker()
fake.add_provider(OpenAiApiProvider)

chat_completion_id = fake.openai().chat.completion.id()

Installation

pip install faker-openai-api-provider

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

faker_openai_api_provider-0.2.0.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

faker_openai_api_provider-0.2.0-py3-none-any.whl (5.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page