Thanks to visit codestin.com
Credit goes to github.com

Skip to content
View rami-HP's full-sized avatar

Organizations

@ramihp @devramihp

Block or report rami-HP

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don't include any personal information such as legal names or email addresses. Markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
rami-HP/README.md

Rami HP Project

This repository includes a small script that calls the OpenAI API. It is configured to run on GitHub Actions using Python 3.11.

Requirements

  • Python 3.11
  • Install dependencies: pip install -r requirements.txt

Set OPENAI_API_KEY (GitHub Actions)

  • Via the web UI: Settings → Secrets and variables → Actions → New repository secret
    Name: OPENAI_API_KEY
    Value:

  • Or via GitHub CLI: gh secret set OPENAI_API_KEY --body "sk-..." --repo rami-HP/rami-HP

Usage (local)

  • Linux / macOS / Windows: (PowerShell) $env:OPENAI_API_KEY="sk-..."; python custom\key_id\model_id.py (cmd) set OPENAI_API_KEY=sk-... && python custom\key_id\model_id.py

Notes

  • The workflow file (.github/workflows/ci.yml) runs Python 3.11 and executes custom/key_id/model_id.py using the OPENAI_API_KEY secret.
  • The default model in the script is gpt-3.5-turbo; you can change it via the OPENAI_MODEL env var or by editing the code.
  • Do NOT commit your API key into the repository.

مشروع Rami HP

يحتوي هذا المستودع على سكربت بسيط يستدعي واجهة برمجة تطبيقات OpenAI. مُعدّ للتشغيل على GitHub Actions باستخدام Python 3.11.

المتطلبات

  • Python 3.11
  • تثبيت الاعتماديات: pip install -r requirements.txt

تعيين OPENAI_API_KEY (لـ GitHub Actions)

  • عبر واجهة الويب: Settings → Secrets and variables → Actions → New repository secret
    الاسم: OPENAI_API_KEY
    القيمة: <مفتاح OpenAI الخاص بك من openai.com>

  • أو عبر GitHub CLI: gh secret set OPENAI_API_KEY --body "sk-..." --repo rami-HP/rami-HP

الاستخدام محلياً

  • نظام Linux / macOS / Windows: (PowerShell) $env:OPENAI_API_KEY="sk-..."; python custom\key_id\model_id.py (cmd) set OPENAI_API_KEY=sk-... && python custom\key_id\model_id.py

ملاحظات

  • ملف سير العمل (.github/workflows/ci.yml) يقوم بتشغيل Python 3.11 وينفّذ custom/key_id/model_id.py مستخدماً السر OPENAI_API_KEY.
  • اسم النموذج الافتراضي في السكربت هو gpt-3.5-turbo؛ يمكن تغييره عبر متغير البيئة OPENAI_MODEL أو تعديل الكود.
  • لا تُضمّن مفتاح API داخل المستودع.

Pinned Loading

  1. README.md README.md
    1
    Hello word ✋
    2
    I'am Rami
  2. hello-world hello-world Public

    Forked from leachim6/hello-world

    Hello world in every computer language. Thanks to everyone who contributes to this, make sure to see CONTRIBUTING.md for contribution instructions!

    Assembly

  3. ramihp/desktop ramihp/desktop Public

    Forked from rami-HP/desktop

    Simple collaboration from your desktop

    TypeScript

  4. ramihp/hello-world ramihp/hello-world Public

    Welcome to Ramihp

    1