Files
langchain/docs
Wenbin Fang a7e09d46c5 Add podcast api tool to use NLP to search all podcasts or episodes. (#1833)
Use the following code to test:

```python
import os
from langchain.llms import OpenAI
from langchain.chains.api import podcast_docs
from langchain.chains import APIChain

# Get api key here: https://openai.com/pricing
os.environ["OPENAI_API_KEY"] = "sk-xxxxx"

# Get api key here: https://www.listennotes.com/api/pricing/
listen_api_key = 'xxx'

llm = OpenAI(temperature=0)
headers = {"X-ListenAPI-Key": listen_api_key}
chain = APIChain.from_llm_and_api_docs(llm, podcast_docs.PODCAST_DOCS, headers=headers, verbose=True)
chain.run("Search for 'silicon valley bank' podcast episodes, audio length is more than 30 minutes, return only 1 results")
```

Known issues: the api response data might be too big, and we'll get such
error:
`openai.error.InvalidRequestError: This model's maximum context length
is 4097 tokens, however you requested 6733 tokens (6477 in your prompt;
256 for the completion). Please reduce your prompt; or completion
length.`
2023-03-20 22:04:17 -07:00
..
2023-02-15 23:07:01 -08:00
2023-03-20 07:52:27 -07:00
2023-02-26 22:35:04 -08:00
2023-03-10 12:53:09 -08:00
2023-03-20 07:53:26 -07:00
2023-03-18 19:55:05 -07:00
2023-01-02 08:24:09 -08:00
2023-03-15 07:59:59 -07:00
2023-03-18 11:12:18 -07:00
2022-10-24 14:51:15 -07:00
2023-03-13 16:03:32 -07:00
2023-01-29 20:49:35 -08:00