github zilliztech/GPTCache 0.1.11
v0.1.11

latest releases: 0.1.44, 0.1.43, 0.1.42...
19 months ago

What's Changed

New Contributors

🎉 Introduction to new functions of GPTCache

  1. Add openai complete adapter
cache.init(pre_embedding_func=get_prompt)

response = openai.Completion.create(
                model="text-davinci-003",
                prompt=question
            )
  1. Add langchain and openai bootcamp

  2. 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'
    )
  1. Refine storage interface

Full Changelog: 0.1.10...0.1.11

Don't miss a new GPTCache release

NewReleases is sending notifications on new releases.