You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Executing the following code (replacing :key with whatever)
(let* ((provider (make-llm-openai
:key (exec-path-from-shell-getenv "OPENAI_API_KEY")
:chat-model "gpt-4o"))
(prompt
(llm-make-chat-prompt
"Compute 3+5 and 7+9."
:temperature 0.1
:functions
(list (make-llm-function-call
:function (lambda (a b)
(+ a b))
:name "add"
:description "Sums two numbers."
:args (list (make-llm-function-arg
:name "a"
:description "A number."
:type 'integer
:required t)
(make-llm-function-arg
:name "b"
:description "A number."
:type 'integer
:required t)))))))
(llm-chat-streaming provider prompt #'ignore #'ignore #'ignore))
yields a complicated args-out-of-range error, ultimately triggered by the function llm-provider-collect-streaming-function-data in llm-openai.el, in the block (setf (llm-provider-utils-function-call-id (aref cvec index)) id), where index is 1 but cvec has length 1. I haven't yet tried to understand exactly why this is happening.
The error doesn't happen if one asks for just one arithmetic operation (e.g., just "3+5").
The text was updated successfully, but these errors were encountered:
Executing the following code (replacing
:key
with whatever)yields a complicated
args-out-of-range
error, ultimately triggered by the functionllm-provider-collect-streaming-function-data
inllm-openai.el
, in the block(setf (llm-provider-utils-function-call-id (aref cvec index)) id)
, whereindex
is1
butcvec
has length1
. I haven't yet tried to understand exactly why this is happening.The error doesn't happen if one asks for just one arithmetic operation (e.g., just "3+5").
The text was updated successfully, but these errors were encountered: