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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for faker_openai_api_provider-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b2209d74c81bbdd86e5e6b13fb9ad2651b1ae9dbb293344875af84fadb8f9b5 |
|
MD5 | dc1b39cc576a4001cf955ed7ba9ae534 |
|
BLAKE2b-256 | 389365826c4e0fe3efb9510444f8a68385d33f1c1e07330fa9b0d5b04564ad77 |
Close
Hashes for faker_openai_api_provider-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d786ad294980f041c025dcd430bcda0ae54668043d5d80f5da73b7d378aa285d |
|
MD5 | 7a58b46a7d0fc7b41d312050d57f516d |
|
BLAKE2b-256 | e10e331ea2668351ebeb842f596e7daa15db8d0e911a4383efb189e0a223b4c1 |