add input to cache entries (#273)
This commit is contained in:
Родитель
f0ceeb4132
Коммит
dcdc4c4434
|
@ -41,7 +41,7 @@ class CacheInteractor:
|
|||
await self._events.on_cache_hit(key, name)
|
||||
else:
|
||||
entry = await func()
|
||||
await self._cache.set(key, entry.model_dump())
|
||||
await self._cache.set(key, entry.model_dump(), {"input": key_data})
|
||||
await self._events.on_cache_miss(key, name)
|
||||
|
||||
return entry
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[tool.poetry]
|
||||
name = "fnllm"
|
||||
version = "0.0.2"
|
||||
version = "0.0.3"
|
||||
description = "A function-based LLM protocol and wrapper."
|
||||
authors = [
|
||||
"Chris Trevino <chtrevin@microsoft.com>",
|
||||
|
|
Загрузка…
Ссылка в новой задаче