File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 11from collections .abc import AsyncGenerator
2- from typing import Any
2+ from typing import Any , Final
33
44from openai import AsyncAzureOpenAI , AsyncOpenAI , AsyncStream
55from openai .types .chat import ChatCompletion , ChatCompletionChunk , ChatCompletionMessageParam
@@ -40,7 +40,7 @@ async def generate_search_query(
4040 """Generate an optimized keyword search query based on the chat history and the last question"""
4141
4242 tools = build_search_function ()
43- tool_choice = "auto"
43+ tool_choice : Final = "auto"
4444
4545 query_messages : list [ChatCompletionMessageParam ] = build_messages (
4646 model = self .chat_model ,
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ dependencies = [
1313 " pgvector>=0.2.5,<0.3.0" ,
1414 " openai>=1.34.0,<2.0.0" ,
1515 " tiktoken>=0.7.0,<0.8.0" ,
16- " openai-messages-token-helper>=0.1.7 ,<0.2.0" ,
16+ " openai-messages-token-helper>=0.1.8 ,<0.2.0" ,
1717 " azure-monitor-opentelemetry>=1.6.0,<2.0.0" ,
1818 " opentelemetry-instrumentation-sqlalchemy>=0.46b0,<1.0.0" ,
1919 " opentelemetry-instrumentation-aiohttp-client>=0.46b0,<1.0.0" ,
You can’t perform that action at this time.
0 commit comments