移除kwargs中的hashing_kv参数取为变量
This commit is contained in:
parent
efdd4b8b8e
commit
4da7dd1865
1 changed files with 2 additions and 2 deletions
|
|
@ -97,7 +97,7 @@ async def openai_complete_if_cache(
|
|||
|
||||
# Save to cache
|
||||
await save_to_cache(
|
||||
kwargs.get("hashing_kv"),
|
||||
hashing_kv,
|
||||
CacheData(
|
||||
args_hash=args_hash,
|
||||
content=content,
|
||||
|
|
@ -271,7 +271,7 @@ async def bedrock_complete_if_cache(
|
|||
|
||||
# Save to cache
|
||||
await save_to_cache(
|
||||
kwargs.get("hashing_kv"),
|
||||
hashing_kv,
|
||||
CacheData(
|
||||
args_hash=args_hash,
|
||||
content=response["output"]["message"]["content"][0]["text"],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue