function call接口调用报错:could not load PEM client certificate, OpenSSL error error:02001002:system library:fopen:No such fil
收藏回复举报
function call接口调用报错:could not load PEM client certificate, OpenSSL error error:02001002:system library:fopen:No such fil
t('forum.solved') 已解决
发表于2025-11-25 15:45:21
0 查看

mindie拉起qwen3-30b-a3b服务后,调用function call接口报错:

curl: (58) could not load PEM client certificate, OpenSSL error error:02001002:system library:fopen:No such file or directory, (no key found, wrong pass phrase, or wrong file format?)

请求命令:

 curl -H "Accept: application/json" -H "Content-type: application/json" --cacert ca.pem --cert client.pem  --key client.key.pem -X POST -d '{ 

            "type": "function", 

            "function": { 

                "name": "get_delivery_date", 

                "description": "Get the delivery date for a customer\u0027s order. Call this whenever you need to know the delivery date, for example when a customer asks \u0027Where is my package\u0027", 

>     "model": "qwen3 

>     "messages": [ 

>         { 

>             "role": "system", 

>             "content": "You are a helpful customer support assistant. Use the supplied tools to assist the user." 

>         }, 

>         { 

>             "role": "user", 

>             "content": "Hi, can you tell me the delivery date for my order?  my order number is 999888" 

>         } 

>     ], 

>     "tools": [ 

>         { 

>             "type": "function", 

>             "function": { 

>                 "name": "get_delivery_date", 

>                 "description": "Get the delivery date for a customer\u0027s order. Call this whenever you need to know the delivery date, for example when a customer asks \u0027Where is my package\u0027", 

>                 "parameters": { 

>                     "type": "object", 

>                     "properties": { 

>                         "order_id": { 

>                             "type": "string", 

>                             "description": "The customer\u0027s order ID." 

>                         } 

>                     }, 

>                     "required": [ 

>                         "order_id" 

>                     ], 

>                     "additionalProperties": false 

>                 } 

>             } 

>         } 

>     ], 

>     "tool_choice": "required", 

>     "stream": false 

> }'  https://{ip:port}/v1/chat/completions 

我要发帖子