移除kwargs中的hashing_kv参数取为变量

This commit is contained in:
yuanxiaobin
2024-12-06 15:35:09 +08:00
parent a1c4a036fd
commit 6a010abb62

View File

@@ -97,7 +97,7 @@ async def openai_complete_if_cache(
# Save to cache # Save to cache
await save_to_cache( await save_to_cache(
kwargs.get("hashing_kv"), hashing_kv,
CacheData( CacheData(
args_hash=args_hash, args_hash=args_hash,
content=content, content=content,
@@ -271,7 +271,7 @@ async def bedrock_complete_if_cache(
# Save to cache # Save to cache
await save_to_cache( await save_to_cache(
kwargs.get("hashing_kv"), hashing_kv,
CacheData( CacheData(
args_hash=args_hash, args_hash=args_hash,
content=response["output"]["message"]["content"][0]["text"], content=response["output"]["message"]["content"][0]["text"],