mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-06 10:35:25 +02:00

* إضافة ترجمة عربية لأوامر 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>
20 lines
694 B
Markdown
20 lines
694 B
Markdown
# 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}}`
|