Merge pull request #339 from Maaaxiii/fix/tool-calling-embeddings
fix: Aligned Parameter Name in chat completions generate_tool_calls
This commit is contained in:
commit
b555eeb6e7
1 changed files with 3 additions and 3 deletions
|
|
@ -471,13 +471,13 @@ async def generate_tool_calls(
|
|||
|
||||
if "text" in gen:
|
||||
# non streaming, all generations will have the text they generated
|
||||
pre_tool_prompt, mm_embeddings = await apply_chat_template(
|
||||
pre_tool_prompt, embeddings = await apply_chat_template(
|
||||
data, gen["text"]
|
||||
)
|
||||
elif current_generations is not None:
|
||||
# streaming, we wont have text in the generation,
|
||||
# we'll have to use the current_generations
|
||||
pre_tool_prompt, mm_embeddings = await apply_chat_template(
|
||||
pre_tool_prompt, embeddings = await apply_chat_template(
|
||||
data, current_generations
|
||||
)
|
||||
|
||||
|
|
@ -489,7 +489,7 @@ async def generate_tool_calls(
|
|||
request_id,
|
||||
pre_tool_prompt,
|
||||
tool_data,
|
||||
embeddings=mm_embeddings,
|
||||
mm_embeddings=embeddings,
|
||||
)
|
||||
)
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue