MCPcopy Create free account
hub / github.com/DVampire/FinAgent / create_completion

Method create_completion

finagent/provider/base_llm.py:15–23  ·  view source on GitHub ↗

Create a completion from messages in text (and potentially also encoded images).

(
        self,
        messages: List[Dict[str, str]],
        model: str,
        temperature: float,
        stop_tokens: Optional[List[str]] = None,
    )

Source from the content-addressed store, hash-verified

13
14 @abc.abstractmethod
15 def create_completion(
16 self,
17 messages: List[Dict[str, str]],
18 model: str,
19 temperature: float,
20 stop_tokens: Optional[List[str]] = None,
21 ) -> Tuple[str, Dict[str, int]]:
22 """Create a completion from messages in text (and potentially also encoded images)."""
23 pass
24
25 @abc.abstractmethod
26 def init_provider(self, provider_cfg) -> None:

Callers 1

get_response_dictMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected