youtube_yapper_trapper icon indicating copy to clipboard operation
youtube_yapper_trapper copied to clipboard

Yyt new

Open tsktech opened this issue 1 month ago • 0 comments

  • made it easy to select the LLM; use ctrl / to uncomment and comment
        # # Groq
        # self.custom_llm = ChatGroq(
        #     temperature=0,
        #     groq_api_key=os.environ.get("GROQ_API_KEY"),
        #     model_name="llama3-70b-8192",
        # )

        # # OPenAI
        # self.custom_llm = ChatOpenAI(
        #     temperature=0,
        #     api_key=os.environ.get("OPENAI_API_KEY"),
        #     model_name="gpt-3.5-turbo",
        # )

        # Ollama
        self.custom_llm = ChatOpenAI(
            model="mistral",
            #model="nous-hermes2pro-llama3-8b", nope does not work
            #model="openhermes", #goes into loops, don't use
            base_url="http://localhost:11434/v1",
            api_key="ollama",  # something random
            temperature=0,
        )

  • UnicodeEncodeError: 'charmap' codec can't encode character '\U0001f576' in position 0: character maps to encoding with 'cp1252' codec failed -- C:\Users\Srika\AppData\Local\pypoetry\Cache\virtualenvs\youtube-yapper-trapper-xBqsal-M-py3.12\Lib\site-packages\crewai\task.py -- in crewai 0.28 the task.py need correction -- change as follows --- with open(self.output_file, "w") as file: --> with open(self.output_file, "w", encoding='utf-8') as file:

  • tested with crewai ver 0.30 the task.py looks fixed.

  • both the output files are saved with timestamp for asy compare between the LLM Models used -- "comment-2024-055-14_10-33.md" and "report-2024-055-14_10-33.md"

  • using two different file output methodes, one using crewai fn and other the python Print() -- the comment is save in the @task using crewai function outputfile=filename but the reports is printed at the end of execution in the main.py

*** the invalid video_id format is still not confirmed to be fixed, it does throw error once in a while *** avoid video_id with "_" in it.

tsktech avatar May 14 '24 12:05 tsktech