MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / __init__

Method __init__

paperflow/providers/llm.py:110–114  ·  view source on GitHub ↗
(self, model: str, api_key: str, base_url: Optional[str] = None, timeout: float = 60.0)

Source from the content-addressed store, hash-verified

108 name = "openai"
109
110 def __init__(self, model: str, api_key: str, base_url: Optional[str] = None, timeout: float = 60.0) -> None:
111 from openai import OpenAI # local import keeps dependency optional
112
113 self.model = model
114 self._client = OpenAI(api_key=api_key, base_url=base_url, timeout=timeout)
115
116 def generate(
117 self,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected