Forum in maintenance, we will back soon 🙂
prompt engineering course
Hi Hasan just wondering whether there are updates to the 'connecting Python with OpenAI API' section? given that since this course was created we now have openai Assistants etc. Are there more updated ways of applying python to the assistant API's?
thank you!
Hi Patrick, I am working on new updates.
the course covered the main way of connecting Python with OpenAI. You can check this video I created on assistance APIs:
if you have a specific scenario you want help with, let me know. I may create a video about it and add in the Premium Videos Library.
Hi Hasan
I keep getting the below error code in the terminal when trying to run a tokeniser script, can you please explain what this means? chatgpt not helping. thanks
KeyError: 'Could not automatically map gpt-4o-mini to a tokeniser. Please use `tiktoken.get_encoding` to explicitly get the tokeniser you expect.'
please share a screenshot and which function is this exactly
Im also finding a lot of the modules imported at the top of your helpers file are causing issues as the right dependencies are not installed, so im getting a few error messages. are you able to send a list of all of the updated packages we need to install to run the modules below? as not mentioned in the course contents.
import tiktoken
import openai
import newspaper
from langchain.text_splitter import TokenTextSplitter
import re
from youtube_transcript_api import YouTubeTranscriptApi
import requests
thanks
Patrick
OK ive managed to get the youtube text extactor to work, but it is not summarising according to the youtube summary prompt, its giving me the full script.
The tokeniser issue is still happening though.
ahh yes I didn't realise the script I copied from your github repo was set up to print transcript rather than response. problem solved thank you!