API Reference¶
set_together_api_key¶
set_together_api_key(api_key: str) -> None
Sets the Together AI API key to be used for API requests.
Parameters:
- api_key (str): Your Together AI API key
answer_youtube_question¶
answer_youtube_question(youtube_url: str, query: str) -> dict
Processes a YouTube video link and a query to provide an answer based on the video's content.
Parameters:
- youtube_url (str): The URL of the YouTube video.
- query (str): The question to ask about the video content.
Returns:
- dict: A dictionary containing the answer and sources. bash