MCPcopy Create free account
hub / github.com/Paper2Poster/Paper2Poster / run

Method run

camel/models/openrouter_model.py:167–176  ·  view source on GitHub ↗

Public synchronous entrypoint, required by the abstract base.

(
        self,
        messages: List[OpenAIMessage],
        response_format: Optional[type[BaseModel]] = None,
        tools: Optional[List[Dict[str, Any]]] = None,
    )

Source from the content-addressed store, hash-verified

165 return response
166
167 def run(
168 self,
169 messages: List[OpenAIMessage],
170 response_format: Optional[type[BaseModel]] = None,
171 tools: Optional[List[Dict[str, Any]]] = None,
172 ) -> Union[ChatCompletion, Stream[ChatCompletionChunk]]:
173 """
174 Public synchronous entrypoint, required by the abstract base.
175 """
176 return self._run(messages, response_format=response_format, tools=tools)
177
178 async def arun(
179 self,

Callers

nothing calls this directly

Calls 1

_runMethod · 0.95

Tested by

no test coverage detected