What's Changed
- Add langchain examples by @shiyu22 in #196
- Enable Python syntax highlighting by @Pouyanpi in #199
- Add openai Completion adapter by @shiyu22 in #202
- Add openai bootcamp by @shiyu22 in #207
- Add openai.Image.create in adapter by @jaelgu in #208
- Refine scalar storage by @junjiejiangjjj in #205
- Improve the langchain example by @SimFG in #211
New Contributors
🎉 Introduction to new functions of GPTCache
- Add openai complete adapter
cache.init(pre_embedding_func=get_prompt)
response = openai.Completion.create(
model="text-davinci-003",
prompt=question
)
-
Add langchain and openai bootcamp
-
Add openai image adapter (experimental)
from gptcache.adapter import openai
cache.init()
cache.set_openai_key()
prompt1 = 'a cat sitting besides a dog'
size1 = '256x256'
openai.Image.create(
prompt=prompt1,
size=size1,
response_format='b64_json'
)
- Refine storage interface
Full Changelog: 0.1.10...0.1.11