AI Cooking Recipe Generator
Custom recipe creation based on ingredients and preferences
AI Cooking Recipe Generator
Custom recipe creation based on ingredients and preferences
AI Cooking Recipe Generator Overview Custom recipe creation based on ingredients and preferences. Implementation ```python from openai import OpenAI client = OpenAI() def run(query: str) -> str: r = client.chat.completions.create( mo
AI Cooking Recipe Generator
Overview
Custom recipe creation based on ingredients and preferences.
Implementation
python
from openai import OpenAI
client = OpenAI()def run(query: str) -> str:
r = client.chat.completions.create(
model="gpt-4o-mini",
messages=[
{"role":"system","content":"You are an AI expert for: ai cooking recipe generator"},
{"role":"user","content":query}
]
)
return r.choices[0].message.content
print(run("How do I implement ai cooking recipe generator?"))
Key Steps
Resources
相关工具