Merge pull request #2138 from pipecat-ai/mb/fix-google-llm-import-order
GoogleLLMService: Linting fixes
This commit is contained in:
@@ -67,8 +67,8 @@ try:
|
|||||||
Content,
|
Content,
|
||||||
FunctionCall,
|
FunctionCall,
|
||||||
FunctionResponse,
|
FunctionResponse,
|
||||||
HttpOptions,
|
|
||||||
GenerateContentConfig,
|
GenerateContentConfig,
|
||||||
|
HttpOptions,
|
||||||
Part,
|
Part,
|
||||||
)
|
)
|
||||||
except ModuleNotFoundError as e:
|
except ModuleNotFoundError as e:
|
||||||
@@ -723,7 +723,7 @@ class GoogleLLMService(LLMService):
|
|||||||
|
|
||||||
def _create_client(self, api_key: str, http_options: Optional[HttpOptions] = None):
|
def _create_client(self, api_key: str, http_options: Optional[HttpOptions] = None):
|
||||||
self._client = genai.Client(api_key=api_key, http_options=http_options)
|
self._client = genai.Client(api_key=api_key, http_options=http_options)
|
||||||
|
|
||||||
def needs_mcp_alternate_schema(self) -> bool:
|
def needs_mcp_alternate_schema(self) -> bool:
|
||||||
"""Check if this LLM service requires alternate MCP schema.
|
"""Check if this LLM service requires alternate MCP schema.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user