We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6bbf134 commit e1e7ff1Copy full SHA for e1e7ff1
llm_cooperation/__init__.py
@@ -27,6 +27,7 @@
27
from abc import ABC, abstractmethod
28
from dataclasses import dataclass
29
from enum import Enum
30
+from functools import lru_cache
31
from typing import (
32
Callable,
33
Dict,
@@ -143,6 +144,7 @@ def amount_as_str(amount: float) -> str:
143
144
return f"${amount:.02f}"
145
146
147
+@lru_cache
148
def completer_for(model_setup: ModelSetup) -> Completer:
149
if model_setup.dry_run is not None:
150
dummy_completions: Tuple[Completion] = (assistant_message(model_setup.dry_run),)
0 commit comments