MCPcopy Create free account
hub / github.com/OpenBMB/ToolBench / __init__

Method __init__

toolbench/inference/LLM/davinci_model.py:15–19  ·  view source on GitHub ↗
(self, model="text-davinci-003", openai_key="")

Source from the content-addressed store, hash-verified

13
14class Davinci:
15 def __init__(self, model="text-davinci-003", openai_key="") -> None:
16 super().__init__()
17 self.model = model
18 self.openai_key = openai_key
19 self.chatio = SimpleChatIO()
20
21 def prediction(self, prompt: str, stop: Optional[List[str]] = None) -> str:
22 max_try = 10

Callers

nothing calls this directly

Calls 1

SimpleChatIOClass · 0.90

Tested by

no test coverage detected