MCPcopy Create free account
hub / github.com/AsyncFuncAI/deepwiki-open / call

Method call

api/dashscope_client.py:687–705  ·  view source on GitHub ↗
(
        self,
        input: EmbedderInputType,
        model_kwargs: Optional[Dict] = {},
    )

Source from the content-addressed store, hash-verified

685 self.output_processors = output_processors
686
687 def call(
688 self,
689 input: EmbedderInputType,
690 model_kwargs: Optional[Dict] = {},
691 ) -> EmbedderOutputType:
692 log.debug(f"Calling {self.__class__.__name__} with input: {input}")
693 api_kwargs = self.model_client.convert_inputs_to_api_kwargs(
694 input=input,
695 model_kwargs=self._compose_model_kwargs(**model_kwargs),
696 model_type=self.model_type,
697 )
698 try:
699 output = self.model_client.call(
700 api_kwargs=api_kwargs, model_type=self.model_type
701 )
702 except Exception as e:
703 log.error(f"🤡 Error calling the DashScope model: {e}")
704 output = EmbedderOutput(error=str(e))
705 return output
706
707 async def acall(
708 self,

Callers

nothing calls this directly

Calls 3

_compose_model_kwargsMethod · 0.95
callMethod · 0.45

Tested by

no test coverage detected