Skip to content

llm.toolHook break for openAI on HTTP response #1545

@xquanluu

Description

@xquanluu

https://github.com/jambonz/jambonz-feature-server/pull/1167/changes

openai llm verb is not working for toolhook

http server return body for call hook:
{
"type": "conversation.item.create",
"item": {
"type": "function_call_output",
"call_id": "call_8bDvLnS28U4ptZQC",
"output": "null"
}
}

but feature server keep say:

{"level":20,"time":1777967577921,"pid":1232,"hostname":"ip-10-1-65-45","callId":"3af184d9-c2fa-123f-49bb-069476782b55","callSid":"1b5909ab-62d8-4094-9390-1a685a42d9c5","accountSid":"f1a5a42c-ab6d-44d0-8d03-de9b410f5eb9","callingNumber":"test1","calledNumber":"12","traceId":"bfb7c1a904a7e3c28126487445c78d80","tool_call_id":"call_8bDvLnS28U4ptZQC","data":{"type":"client_tool_result","item":{"type":"function_call_output","call_id":"call_8bDvLnS28U4ptZQC","output":"null"},"invocation_id":"call_8bDvLnS28U4ptZQC"},"msg":"TaskLlmOpenAI_S2S:processToolOutput"}
{"level":30,"time":1777967577921,"pid":1232,"hostname":"ip-10-1-65-45","callId":"3af184d9-c2fa-123f-49bb-069476782b55","callSid":"1b5909ab-62d8-4094-9390-1a685a42d9c5","accountSid":"f1a5a42c-ab6d-44d0-8d03-de9b410f5eb9","callingNumber":"test1","calledNumber":"12","traceId":"bfb7c1a904a7e3c28126487445c78d80","data":{"type":"client_tool_result","item":{"type":"function_call_output","call_id":"call_8bDvLnS28U4ptZQC","output":"null"},"invocation_id":"call_8bDvLnS28U4ptZQC"},"msg":"TaskLlmOpenAI_S2S:processToolOutput - invalid tool output, must be conversation.item.create"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions