Skip to content

Commit 7b6d07b

Browse files
committed
Fix pyright/selftest
1 parent cd35ec4 commit 7b6d07b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ansible_ai_connect/ai/api/model_pipelines/http/pipelines.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import json
1616
import logging
1717
from json import JSONDecodeError
18-
from typing import AsyncGenerator
18+
from typing import AsyncGenerator, Any
1919

2020
import aiohttp
2121
import requests
@@ -181,7 +181,7 @@ def invoke(self, params: ChatBotParameters) -> ChatBotResponse:
181181
system_prompt = params.system_prompt or settings.CHATBOT_DEFAULT_SYSTEM_PROMPT
182182
no_tools = params.no_tools
183183

184-
data: dict[str, str | bool] = {
184+
data: dict[str, Any] = {
185185
"query": query,
186186
"model": model_id,
187187
"provider": provider,
@@ -286,7 +286,7 @@ async def async_invoke(self, params: StreamingChatBotParameters) -> AsyncGenerat
286286
media_type = params.media_type
287287
no_tools = params.no_tools
288288

289-
data: dict[str, str | bool] = {
289+
data: dict[str, Any] = {
290290
"query": query,
291291
"model": model_id,
292292
"provider": provider,

0 commit comments

Comments
 (0)