- openai-http-clientparameter
Parameter holding the HTTP client procedure. Can be overridden for testing or custom HTTP handling. The procedure signature is (endpoint payload) -> response-alist.
;; Mock the HTTP client for testing (openai-http-client (lambda (endpoint payload) '((choices . #(((message . ((content . "Test response") (role . "assistant"))) (finish_reason . "stop")))) (usage . ((prompt_tokens . 10) (completion_tokens . 5))))))