Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yyt new #1

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Yyt new #1

wants to merge 4 commits into from

Conversation

tsktech
Copy link

@tsktech tsktech commented May 14, 2024

  • 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.

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.

2 participants