Skip to content

Commit

Permalink
fix cache minor issue
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelthwan committed Mar 11, 2023
1 parent e1eb9a4 commit 79f936f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Util.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def wrapper(*args, **kwargs):
if config.get('cache').get('is_enable').get(cache_type):
hash_key = str(kwargs[cache_hash_key_name])

cache_path = Path(config.get('cache').get('path'))
cache_path = Path(get_project_root(), config.get('cache').get('path'))
cache_hash = md5(str(config).encode() + hash_key.encode()).hexdigest()

if check_result_cache_exists(cache_path, cache_hash, cache_type):
Expand Down
4 changes: 2 additions & 2 deletions src/config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ goose_ai_api:
max_tokens: 100
cache: # .cache result for efficiency and consistency
is_enable:
web: true
web: false
bing_search_website: false
bing_search_website_content: false
openai: false
gooseai: false
path: .cache
max_number_of_cache: 10
max_number_of_cache: 50

0 comments on commit 79f936f

Please sign in to comment.