这是indexloc提供的服务,不要输入任何密码
Skip to content

FileSearchTool deserialization exception: Cannot deserialize value of type java.lang.String from Object value (token JsonToken.START_OBJECT) #61

@Karleon-WEI

Description

@Karleon-WEI
com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize value of type `java.lang.String` from Object value (token `JsonToken.START_OBJECT`)
 at [Source: (String)"{"id":"step_UZoC1MNqKPZ3VcuG2r2k","object":"thread.run.step.delta","delta":{"step_details":{"type":"tool_calls","tool_calls":[{"index":0,"id":"call_mYpvxh6V0XygaLpz1FX","type":"file_search","file_search":{"ranking_options":{"ranker":"default_2024_08_21","score_threshold":0.0},"results":[]}}]}}}"; line: 1, column: 233] (through reference chain: com.theokanning.openai.assistants.run_step.RunStepDelta["delta"]->com.theokanning.openai.assistants.run_step.Delta["step_details"]->com.theokanning.openai.assistants.run_step.StepDetails["tool_calls"]->java.util.ArrayList[0]->com.theokanning.openai.assistants.run.ToolCall["file_search"]->java.util.LinkedHashMap["ranking_options"])

"type":"file_search","file_search":{"ranking_options":{"ranker":"default_2024_08_21","score_threshold":0.0}

Class FileSearchTool needs to add the ranking_options field.

https://platform.openai.com/docs/assistants/tools/file-search/improve-file-search-result-relevance-with-chunk-ranking

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions