1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-24 01:42:08 +02:00
tldr/pages.ar/common/openai.md
Ayad seghiri 2a3df8a78d
$, doppler, openai, picotool, pip, tldr, uv, who: add Arabic translation (#16004)
* إضافة ترجمة عربية لأوامر CLI

* Fixed 'More information' links and updated outdated pages

* Fixed 'More information' links and updated outdated pages

* Update *

Parser compatible

* Update pages.ar/common/tldr.md

Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>

* Update tldr.md

---------

Co-authored-by: Machiavelli <145562237+MachiavelliII@users.noreply.github.com>
Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
2025-03-24 00:36:16 +02:00

694 B

openai

أداة سطر الأوامر للوصول إلى واجهة برمجة تطبيقات OpenAI. لمزيد من التفاصيل: https://github.com/openai/openai-python.

  • عرض قائمة النماذج المتاحة:

openai api models.list

  • إنشاء إكمال نصي:

openai api completions.create --model {{ada}} --prompt "{{Hello world}}"

  • إنشاء إكمال محادثة:

openai api chat_completions.create --model {{gpt-3.5-turbo}} --message {{user "Hello world"}}

  • إنشاء صور باستخدام API الخاصة بـ DALL·E:

openai api image.create --prompt "{{كلبان يلعبان الشطرنج، كرتوني}}" --num-images {{1}}