Skip to content

Create synthetic proxy.ipynb - #481

Closed
JohnSullivanMOSTLYAI wants to merge 9 commits into
mostly-ai:mainfrom
JohnSullivanMOSTLYAI:patch-1
Closed

Create synthetic proxy.ipynb#481
JohnSullivanMOSTLYAI wants to merge 9 commits into
mostly-ai:mainfrom
JohnSullivanMOSTLYAI:patch-1

Conversation

@JohnSullivanMOSTLYAI

@JohnSullivanMOSTLYAI JohnSullivanMOSTLYAI commented Jun 12, 2025

Copy link
Copy Markdown

Pull Request

Changes

Adding a new Tutorial: LLM Enrichment using a Safe Synthetic Proxy

Mario reviewed code.

Why this change?

Explain the reason for the change.

Testing

How was the change tested?

Additional Notes

Any additional information or context you want to provide?

@JohnSullivanMOSTLYAI
JohnSullivanMOSTLYAI requested a review from a team June 12, 2025 09:32
@JohnSullivanMOSTLYAI JohnSullivanMOSTLYAI self-assigned this Jun 12, 2025
"\n",
"📋 Steps\n",
"\n",
"1. CCreate a synthetic replica of your dataset\n",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CCreate typo

Comment on lines +78 to +79
"# Set your OpenAI API key\n",
"os.environ[\"OPENAI_API_KEY\"] = \"YOUR_KEY_HERE\""

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Although ok for local testing, this is not a good practice. I'd consider having it at least like this:

API_KEY = os.getenv("OPENAI_API_KEY")
if not API_KEY:
    raise RuntimeError("OPENAI_API_KEY not set")

@mplatzer mplatzer closed this Jun 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants