File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
from collections .abc import AsyncGenerator
2
- from typing import Any
2
+ from typing import Any , Final
3
3
4
4
from openai import AsyncAzureOpenAI , AsyncOpenAI , AsyncStream
5
5
from openai .types .chat import ChatCompletion , ChatCompletionChunk , ChatCompletionMessageParam
@@ -40,7 +40,7 @@ async def generate_search_query(
40
40
"""Generate an optimized keyword search query based on the chat history and the last question"""
41
41
42
42
tools = build_search_function ()
43
- tool_choice = "auto"
43
+ tool_choice : Final = "auto"
44
44
45
45
query_messages : list [ChatCompletionMessageParam ] = build_messages (
46
46
model = self .chat_model ,
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ dependencies = [
13
13
" pgvector>=0.2.5,<0.3.0" ,
14
14
" openai>=1.34.0,<2.0.0" ,
15
15
" 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" ,
17
17
" azure-monitor-opentelemetry>=1.6.0,<2.0.0" ,
18
18
" opentelemetry-instrumentation-sqlalchemy>=0.46b0,<1.0.0" ,
19
19
" opentelemetry-instrumentation-aiohttp-client>=0.46b0,<1.0.0" ,
You can’t perform that action at this time.
0 commit comments