مشاهده دسته‌بندی‌ها

ChatGPT - مکالمات هوش مصنوعی در اسکرچ

💬 ChatGPT - مکالمات هوش مصنوعی در اسکرچ #

افزونه ChatGPT قدرت مدل‌های زبانی OpenAI را مستقیماً به اسکرچ می‌آورد.
چت‌بات‌های هوشمند ایجاد کنید، پروژه‌های داستان‌سرایی تعاملی بسازید، در کدنویسی کمک بگیرید، محتوای خلاقانه تولید کنید و دستیارهای مبتنی بر هوش مصنوعی بسازید - همه اینها به کمک بلوک‌های ساده‌ای که به API چت جی‌بی‌تی OpenAI متصل می‌شوند ممکن می‌شود.
ایده‌آل برای دانش‌آموزان، مربیان و سازندگانی که هوش مصنوعی را کاوش می‌کنند.


🌟 مرور کلی #

  • مکالمات واقعی هوش مصنوعی: سوال بپرسید و پاسخ‌های هوشمندانه‌ای از مدل‌های زبانی قدرتمند OpenAI دریافت کنید.
  • مدل‌های چندگانه: از بین مدل‌های GPT-4o، GPT-4o-mini و سایر مدل‌ها با قابلیت‌ها و سرعت‌های مختلف، یکی را انتخاب کنید.
  • شخصیت‌های قابل تنظیم: نام دستیار، نقش‌ها (معلم، قصه‌گو، ربات و غیره) و شخصیت‌های سفارشی را تنظیم کنید.
  • حافظه محتوایی: ChatGPT تاریخچه مکالمات را برای تعاملات طبیعی و روان به خاطر می‌سپارد.
  • تنظیم دقیق پاسخ‌ها: طول پاسخ، سطح خلاقیت و سبک پاسخ را کنترل کنید.
  • راه‌اندازی آسان: فقط کلید API اپن‌ای‌آی خود را اضافه کنید و چت را شروع کنید!

✨ ویژگی‌های کلیدی #

  • دسترسی به جدیدترین مدل‌های ChatGPT شرکت OpenAI (GPT-4o-mini، GPT-4o، GPT-5-nano و غیره).
  • تشخیص خودکار زبان - پاسخ‌ها به زبان کاربر.
  • ۶ نقش شخصیت از پیش تعیین‌شده: دستیار، ربات، معلم، قصه‌گو، کودک، گربه سخنگو.
  • متن شخصی‌سازی‌شده برای شخصیت‌های منحصربه‌فرد.
  • حافظه مکالمه - 10 سوال و جواب آخر شما را برای مکالمات طبیعی به خاطر می‌سپارد.
  • طول پاسخ قابل تنظیم (بیشینه توکن‌ها) و خلاقیت (نوع پاسخ).
  • لیست پویای مدل‌ها - کشف و استفاده از مدل‌های جدید همزمان با انتشار آنها توسط OpenAI.
  • بررسی ایمنی داخلی - به طور خودکار محتوای نامناسب برای کودکان را مسدود می‌کند.
  • تنظیمات پیش‌فرض ایمن، مختصر و مناسب برای کودکان.
  • پیشگیری هوشمند از خطا - مشکلات رایج مربوط به کلیدهای API را به طور خودکار برطرف می‌کند.

🚀 نحوه استفاده #

  1. بروید به: pishi.ai/play
  2. بخش افزونه‌ها را باز کنید.
  3. افزونه ChatGPT را انتخاب کنید.
  4. دریافت کلید API:
    برای استفاده از افزونه ChatGPT، به کلید API اپن‌ای‌آی نیاز دارید.
    دانش‌آموزان: از والدین یا معلم خود بخواهید که در ایجاد یک حساب OpenAI به شما کمک کنند.

    • بروید به: پلتفرم OpenAI – کلیدهای API
    • وارد شوید یا یک حساب کاربری ایجاد کنید.
    • صفحه «کلیدهای API» را باز کنید و روی “Create new secret key” یا «ایجاد کلید مخفی جدید» کلیک کنید.
    • کلید را کپی کنید (یک عبارت شبیه sk-proj-…).
      هنگام کپی کردن مطمئن شوید که هیچ فاصله اضافی وجود ندارد.
    • بسته به نوع حساب شما، OpenAI ممکن است نیاز به اضافه کردن اطلاعات صورتحساب داشته باشد.
  5. تنظیم کلید ای‌پی‌آی: روی این بلوک در اسکرچ کلیک کنید. پیامی ظاهر می‌شود - کلید API خود را جایگذاری کنید و روی تأیید کلیک کنید.
  6. پاسخ بده به: [MESSAGE|text]: از این بلوک برای پرسیدن هر چیزی از ChatGPT استفاده کنید!
  7. سفارشی‌سازی (اختیاری): نام، نقش، شخصیت، مدل و تنظیمات پاسخ دستیار را تنظیم کنید تا دستیار هوش مصنوعی ایده‌آل خود را بسازید.

نکات

  • با مدل پیش‌فرض شروع کنید gpt-4o-mini - سریع و مقرون به صرفه است.
  • برای پاسخ‌های بهتر، سوالات را واضح و مشخص مطرح کنید.
  • سابقه پیام‌ها را پاک کن: از این بلوک برای شروع مکالمات جدید استفاده کنید.
  • برای خلق شخصیت‌های منحصر به فرد، نقش‌ها و شخصیت‌های مختلف را آزمایش کنید.
  • برای جلوگیری از هزینه‌های غیرمنتظره، میزان استفاده از OpenAI خود را زیر نظر داشته باشید - برای این منظور چک کنید: داشبورد استفاده از OpenAI.

🧱 بلوک‌ها و توابع #

 

💬 تعامل اصلی #

پاسخ بده به: [MESSAGE|text]

Sends a question or message to ChatGPT and returns the AI’s response as text.
This is the core block for interacting with the AI – ask anything and get intelligent answers!

چگونه کار می‌کند:

  • Type your question or message in the MESSAGE field.
  • The extension checks your question to make sure it’s kid-friendly.
  • Your question is sent to OpenAI along with the recent conversation (so ChatGPT remembers what you talked about).
  • ChatGPT thinks about your question and creates an answer.
  • The answer is also checked to make sure it’s appropriate for kids.
  • You get the answer as text – you can make your sprite say it, display it, or use it however you want!
  • The conversation is saved automatically (your last 10 questions and answers) so ChatGPT can give better responses.

مثال‌ها:

  • پاسخ بده به: [۵ + ۳ چند می‌شود؟|text] → ChatGPT replies: “8”
  • پاسخ بده به: [یه جوک بگو|text] → ChatGPT tells a short joke
  • پاسخ بده به: [چه پروژه اسکرچ باحالی باید درست کنم؟|text] → ChatGPT suggests a project idea

توجه: This block requires a valid OpenAI API key. If no key is set, it returns:
“enter the api key obtained from the openai.com site”

 

آخرین پاسخ

Returns the most recent answer generated by ChatGPT without making a new API call.
This is useful when you need to access the previous answer multiple times in your project.

چگونه کار می‌کند:

  • Returns the text of the last answer from the “answer to:” block.
  • If no answer has been generated yet, it returns an empty string.
  • Does not make any API calls – it’s completely free and instant!
  • The value updates automatically each time you use the “answer to:” block.

نکته: Use this block to avoid unnecessary API calls when you need the same answer in multiple places in your code!

 


🎭 Persona & Role Customization #

تنظیم نام دستیار [NAME|text]

Sets the display name for the AI assistant.
This affects how the AI introduces itself and how it behaves in conversations.

Default: پیشی . ای آی

 
مثال‌ها:

  • تنظیم نام دستیار [کمک کننده اسکرچ|text]
  • تنظیم نام دستیار [پروفسور بات|text]
  • تنظیم نام دستیار [فلیکس گربه|text]

نکته: Choose names that match your project’s theme or character!

 

رفتار کن با نقش [ROLE]

Sets the AI’s persona role from a menu of predefined options.
Each role changes how the AI communicates and responds.

Available Roles:

  • دستیار – Friendly assistant (default)
  • ربات – Playful robot character
  • معلم – Patient Scratch teacher
  • قصه‌گو – Creative story creator
  • کودکانه – Friendly kid-like speech
  • گربه‌ی سخنگو – Fun cat character from a Scratch project

مثال‌ها:

  • رفتار کن با نقش [معلم] → AI acts like a patient teacher explaining concepts clearly
  • رفتار کن با نقش [قصه‌گو] → AI creates short, creative stories
  • رفتار کن با نقش [ربات] → AI uses playful robot-like language

 

تنظیم شخصیت [PERSONA|text]

Adds custom personality instructions to the AI’s system prompt.
Use this for detailed character customization beyond the preset roles.
Limited to 500 characters for safety and performance.

چگونه کار می‌کند:

  • Type a brief description of the personality or behavior you want.
  • This text is appended to the system instructions, shaping the AI’s responses.
  • Keep it short and clear – the AI still follows safety rules and brevity guidelines.

مثال‌ها:

  • تنظیم شخصیت [تو یک دزد دریایی هستی که عاشق گنج یابی است|text]
  • تنظیم شخصیت [تو با قافیه و معما صحبت می کنی|text]
  • تنظیم شخصیت [تو مشتاق آزمایشات علمی هستی|text]

نکته: Combine with “set assistant name” and “act as” for rich, unique characters!

 


🤖 انتخاب مدل #

انتخاب مدل [MODEL|rect]

Chooses which OpenAI model to use for generating responses.
Different models have different capabilities, speeds, and costs.

Default Models:

  • gpt-4o-mini – Fast, affordable, great for most projects (default)
  • gpt-4.1-mini – Newer mini variant
  • gpt-4.1-nano – Very fast, minimal model
  • gpt-4o – More powerful, better reasoning, higher quality responses
  • gpt-5-nano – Very fast next-generation nano model with advanced reasoning capabilities

Note about GPT-5 models: GPT-5 models “think” before answering, which uses up some of the token limit. Don’t worry – the extension automatically gives these models extra space (×2 tokens, at least 240) so you still get complete answers!
توجه: The list of models shown here can change. When you use the “update available models” block, the extension updates the model dropdown with the latest chat-compatible models from OpenAI – including newly released ones.

How to choose:

  • For everyday chatbots, simple questions, and cost-effective projects, use: gpt-4o-mini
  • For deeper reasoning, more accurate answers, or more detailed explanations, use: gpt-4.1-mini
  • For the latest models and pricing, check: OpenAI’s model documentation.

توجه: Each model has different costs per token – monitor your usage to control expenses.

 

به‌روزرسانی مدل‌های در دسترس، فیلتر: [FILTER|text]

Fetches a list of available models from OpenAI and updates the model menu.
Returns a comma-separated list of models (up to 50) that match the filter.

چگونه کار می‌کند:

  • Queries the OpenAI API for all available models.
  • Filters out non-chat models (embeddings, audio, vision, moderation, etc.).
  • Optionally filters by a substring (e.g., “gpt-4” to see only GPT-4 models).
  • Returns the list as text and updates the model dropdown menu.

مثال‌ها:

  • به‌روزرسانی مدل‌های در دسترس، فیلتر: [gpt-4|text] → Lists all GPT-4 models
  • به‌روزرسانی مدل‌های در دسترس، فیلتر: [‌|text] → Lists all available chat models

نکته: Use this block at the start of your project to discover new models as OpenAI releases them!

 


⚙️ پیکربندی پاسخ #

بیشینه توکن‌ها را برابر [MAX_TOKENS|text] قرار بده

Sets the maximum length of ChatGPT’s responses in tokens.
Tokens are word fragments – roughly 1 token = 0.75 words.

چگونه کار می‌کند:

  • Higher values = longer, more detailed answers.
  • Lower values = shorter, more concise answers.
  • Range: 1–2048 tokens (the extension keeps it within safe limits automatically).
  • Default: 360 tokens (~270 words) – keeps answers brief and kid-friendly.
  • GPT-5 Note: GPT-5 models use some tokens for internal “thinking,” which means they need a little extra max-token space to finish answers. This doesn’t make their responses longer – it just supports their reasoning. The extension automatically increases their limit (×2, minimum 240), but for very detailed answers you may still want to raise it further.

مثال‌ها:

  • بیشینه توکن‌ها را برابر [50|text] قرار بده → Very short answers (1–2 sentences)
  • بیشینه توکن‌ها را برابر [200|text] قرار بده → Moderate-length answers (a few sentences)
  • بیشینه توکن‌ها را برابر [500|text] قرار بده → Longer, detailed explanations

نکته: Shorter answers are faster, cheaper, and easier for kids to read!

 

نوع پاسخ‌ها: [TYPE]

Controls the creativity and randomness of ChatGPT’s responses (temperature setting).
Choose from a menu of preset styles or enter a custom value (0–2).

Options:

  • دقیق (0) – Focused, consistent, predictable answers
  • عادی (1) – Balanced creativity and accuracy (default)
  • خلاقانه (2) – More varied, imaginative, surprising responses

مثال‌ها:

  • نوع پاسخ‌ها: [دقیق] → Good for math, facts, consistent responses
  • نوع پاسخ‌ها: [خلاقانه] → Good for storytelling, brainstorming, jokes

 

تنظیم زمان انتظار [TIMEOUT|text]

Sets the maximum time (in milliseconds) to wait for a response from OpenAI.
If the request takes longer, it will timeout and return an error.
Default: 30000 (30 seconds)

مثال‌ها:

  • تنظیم زمان انتظار [60000|text] → Wait up to 60 seconds
  • تنظیم زمان انتظار [15000|text] → Wait up to 15 seconds (faster failure for slow connections)

نکته: Longer timeouts are helpful for complex questions or slower internet connections.

 


🗑️ مدیریت مکالمه #

سابقه پیام‌ها را پاک کن

Clears the entire conversation history with ChatGPT.
Use this to start a fresh conversation without context from previous questions.

When to use:

  • Starting a new topic or conversation.
  • When ChatGPT seems confused or is talking about old stuff.
  • To give your assistant a “fresh start” for testing or demos.
  • When you’ve had a long conversation (the extension remembers your last 10 questions & answers, then starts forgetting older ones).

توجه: Your assistant’s name, role, and personality stay the same – only the conversation memory is erased.

 


🔑 تنظیم کلید API #

تنظیم کلید ای‌پی‌آی

Opens a prompt to enter or update your OpenAI API key.
Your key is stored in the browser’s session storage (cleared when you close the tab).

How to use:

  • Click this block.
  • A text input prompt appears.
  • Paste your API key from OpenAI (starts with sk-proj-…).
  • Click OK to save.

Security Notes:

  • API keys are stored temporarily – only while your browser tab is open.
  • Keys are deleted when you close the browser tab.
  • Never share your API key publicly or in shared projects!
  • The extension automatically cleans up your API key – it removes invisible characters that sometimes get copied by accident.
  • Your key must use regular English letters and numbers only. If you paste something weird, you’ll get a friendly error message.
  • If you see an error about “invalid characters,” just copy the key again from OpenAI and paste it fresh.

نکته: Generate separate API keys for different projects to track usage and costs separately.

 


🎓 کاربردهای آموزشی #

  • AI Literacy – Learn how AI models work, how prompts influence responses, and how to use AI responsibly.
  • Creative Learning – Build interactive tutors, storytellers, role-playing characters, and educational chatbots.
  • Language Skills – Practice real conversations in different languages with AI-driven characters.
  • API Understanding – Discover how Scratch connects to external services in a simple, visual way.
  • Physical Computing + AI:
    • Natural-Language Robot Control – Command robots using phrases like “drive in a square” or “wave hello.”
    • AI Decision Making – Combine sensors with ChatGPT so the robot decides what to do next.
    • Story-Acting Robots – ChatGPT writes scenes and the robot acts them out with motions or LEDs.

🎮 پروژه‌های نمونه #

– On-Screen Projects #

  • Interactive Storyteller – ChatGPT creates new story chapters based on player choices.
  • AI Quiz Generator – Endless trivia generated instantly during gameplay.
  • Creative Writing Partner – Get characters, worlds, and plot twists in seconds.
  • AI Dungeon Master – A full text-adventure narrator powered by ChatGPT.

– Physical Computing + ChatGPT #

  • AI Robot Assistant – Type or speak commands like “move forward slowly” or “spin like a dancer,” and the robot performs them.
  • Emotion-Aware Robot – ChatGPT interprets user messages and the robot reacts with gestures or LED mood colors.
  • Interactive Pet Robot – ChatGPT handles personality and dialogue while the robot moves or animates in response.
  • Adventure Robot – ChatGPT tells a story and the robot acts out moments with lights or movements.
  • AI Task Translator – High-level commands like “patrol the room” or “draw a square” are converted into step-by-step robot actions.

🧩 خودتان امتحان کنید: pishi.ai/play

 


🔧 نکات و عیب‌یابی #

 

💬 نکات ویژه ChatGPT #

  • “Enter the api key” error? You need to set your OpenAI API key first – click “set api key” and paste your key from OpenAI Platform.
  • “API key contains invalid characters” error? Sometimes when you copy and paste, invisible characters sneak in! The extension checks for these automatically. Just go back to OpenAI, copy your key again carefully, and paste it fresh.
  • “Insufficient quota” error? Your OpenAI account ran out of money/credits. Add funds at OpenAI Billing or try a cheaper model like GPT-4o-mini.
  • “Let’s talk about coding and creativity instead!” This means your question or ChatGPT’s answer was flagged as not kid-friendly. Don’t worry – just ask something about coding, art, games, or stories instead!
  • “The answer was too long. Raise the max tokens and try again.” ChatGPT had more to say but ran out of space! Increase the max tokens setting to get longer answers.
  • Slow responses? GPT-4o is more powerful but slower. Try GPT-4o-mini for faster answers. Also check your internet connection.
  • Answers too long? Lower the max tokens (try 50–120 for short answers).
  • Answers too short? Increase the max tokens (try 200–500 for detailed responses). GPT-5 models use some tokens for “thinking,” so they might need a bit extra.
  • AI not following instructions? Try rephrasing your question or clearing message logs to start fresh.
  • Unexpected costs? Monitor usage at: داشبورد استفاده از OpenAI. Use GPT-4o-mini for cost-effective projects.
  • Context confusion? ChatGPT remembers your last 10 questions and answers. Use “clear message logs” to make it forget and start over.
  • Timeout errors? Increase the timeout value or check your internet connection. Complex questions may take longer.
  • Want more creative answers? Set answers type to “creative” or increase temperature.
  • Want consistent, factual answers? Set answers type to “accurate” or lower temperature.
  • Same question = same answer? If you ask the exact same thing twice in a row, the extension reuses the previous answer to save time and money. For short questions (3 words or less), this lasts 2 seconds. For longer questions, it lasts until you ask something different or change settings. Smart, right?
  • Need the last answer again? Use the “last answer” block to get the previous response without making a new API call – it’s free and instant!

🔒 حریم خصوصی و امنیت #

  • Your API key is saved temporarily in your browser – it disappears when you close the tab.
  • All conversations are sent to OpenAI’s servers for processing – review: OpenAI’s Privacy Policy.
  • Conversation data may be used by OpenAI for model improvement unless you opt out in your OpenAI account settings.
  • Automatic Safety Checking: Both your questions and ChatGPT’s answers are checked to make sure everything is kid-friendly. Anything inappropriate gets blocked automatically – you’ll just see a message suggesting to talk about coding and creativity instead!
  • The extension is set up to give short, safe, kid-friendly answers by default.
  • Only your last 10 questions and answers are remembered, so conversations don’t get too long or confusing.
  • Always have a parent or teacher nearby when using AI tools – AI is smart but can still make mistakes!
  • Never share personal information (names, addresses, passwords) with AI chatbots.
  • Costs are charged to your OpenAI account – monitor usage to avoid unexpected bills.
  • API keys grant access to your OpenAI account – never share them publicly or in shared Scratch projects!

💰 هزینه‌ها و میزان مصرف #

  • OpenAI charges per token (input + output). Check current pricing at: قیمت‌گذاری OpenAI.
  • GPT-4o-mini is the most affordable option – great for educational projects and experimentation.
  • GPT-4o is more expensive but provides higher quality responses for complex tasks.
  • Monitor your usage in real-time at: داشبورد استفاده از OpenAI.
  • Set usage limits in your OpenAI account settings to prevent overspending.
  • Use shorter max tokens to reduce costs per request.
  • Educational discounts or credits may be available – check OpenAI for educator programs.

🧪 اطلاعات فنی #

  • رابط برنامه‌نویسی کاربردی: OpenAI Chat Completions API + Moderation API (for safety checking)
  • Default Models List: GPT-4o, GPT-4o-mini, GPT-4.1-mini, GPT-4.1-nano, GPT-5-nano
  • Default Model: gpt-4o-mini (fast, affordable, high quality)
  • Conversation Memory: Automatically remembers your last 10 questions and answers
  • Answer Caching: Repeated questions return cached answers instantly – short questions (≤3 words) cache for 2 seconds, longer questions cache indefinitely until changed
  • Max Tokens Range: 1–2048 (default: 360)
  • GPT-5 Smart Handling: These models need extra space for “thinking,” so the extension automatically doubles the tokens (minimum 240) to make sure you get complete answers
  • Temperature Range: 0–2 (default: 1 / “normal”)
  • زمان انتظار: 30 seconds default (adjustable)
  • Language Detection: Automatic – ChatGPT replies in whatever language you use
  • Safety Settings: Built-in rules to keep answers short, safe, and perfect for kids
  • Safety Checking: Both your questions and ChatGPT’s answers are checked automatically (takes up to 10 seconds)
  • API Key Storage: Saved temporarily in your browser (deleted when you close the tab)
  • Smart Key Cleanup: Automatically removes invisible “junk” characters that sometimes sneak in when you copy/paste
  • Smart Answer Reuse: If you ask the same question twice in a row, you get the same answer instantly (saves time and money!)
  • Advanced Format Support: Works with all types of responses, including the special “reasoning” format from GPT-5 models
  • نیاز به اینترنت: Yes – all requests are sent to OpenAI servers

🔗 افزونه‌های مرتبط #

  • 🎤 تشخیص گفتار - تبدیل صدا به متن، سپس ارسال به ChatGPT
  • 🔊 متن به گفتار - پاسخ‌های ChatGPT را با صدای بلند بخوانید
  • 📝 ترجمه - پاسخ‌های ChatGPT را بین زبان‌ها ترجمه کنید
  • 🖼️ یاد دادن تصاویر - مدل‌های سفارشی را مستقیماً درون اسکرچ آموزش دهید

📚 اطلاعات بیشتر #


پیمایش به بالا