Skip to content

Commit

Permalink
Fix the empty cache error
Browse files Browse the repository at this point in the history
Signed-off-by: SimFG <bang.fu@zilliz.com>
  • Loading branch information
SimFG committed Jun 2, 2023
1 parent 18bfb1d commit f5f02f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gptcache/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""gptcache version"""
__version__ = "0.1.29"
__version__ = "0.1.29.1"

from gptcache.config import Config
from gptcache.core import Cache
Expand Down
3 changes: 2 additions & 1 deletion gptcache_server/server.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import argparse
from typing import Optional

from gptcache import cache
from gptcache.adapter.api import (
Expand All @@ -22,7 +23,7 @@

class CacheData(BaseModel):
prompt: str
answer: str = ""
answer: Optional[str] = ""


@app.get("/")
Expand Down

0 comments on commit f5f02f0

Please sign in to comment.