Skip to content

Fixed issue in Prompt Pagination, Update to OpenAI API, and various formatting fixes - #6

Open
gatuno1 wants to merge 7 commits into
reda-marzouk608:mainfrom
gatuno1:main
Open

Fixed issue in Prompt Pagination, Update to OpenAI API, and various formatting fixes#6
gatuno1 wants to merge 7 commits into
reda-marzouk608:mainfrom
gatuno1:main

Conversation

@gatuno1

@gatuno1 gatuno1 commented Jan 20, 2025

Copy link
Copy Markdown
  • Bugfix: duplicated text in pagination prompt.
    Removed error of adding twice the main pagination prompt text when scraping for pagination links with a LLM call.

  • Bugfix: migrated to v1.0 call
    When using generic openai-compatible model, the chat completation call is using client object as recommended in v1.0 API.

  • Prompt improvement:
    Modifications on scaper and pagination Prompts, to be clearer for the LLM.

  • Formatting & linting on all files:
    Includes removal of unused imports, removal of old comments, added header with she-bang for python, formatted python code for better readability, corrected problems with f-strings and logging options, etc.

  • Created .gitignore file with exclusions for output dir, and common cases for python, virtual environment, windows, vscode and pycharm.
    Hint from amgrbi96/AI-scraper fork.

  • Added changes.md file: to maintain changes log.

  • Added streamlit app debug configuration for VSCode.

  • Streamlit opt-out configuration added.

  • Ordered contents of requirements.txt files.

  • Removed empty test.py file.

  • Added links to Youtube videos for this project in README.md, as silasneo/scrape-master fork did.

Add configuration files and update README for Streamlit configuration
When using generic openai-compatible model, the chat completation call is using client as recommended in v1.0 API.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant