Skip to content

#+RESULTS: : (gptel error: gptel error) #13

Description

@trharmon0

Howdy. I'm getting an error when executing the gptel babel block and I've been unable to divine why. I tested proper functioning of gptel on its own.

#+begin_src gptel 
Hello, are you there?
#+end_src

#+RESULTS:
: (gptel error: gptel error)

There's nothing in the Warnings buffer nor anything indicative in Messages. I set gptel-log-level to info and I'm actually seeing a valid reply from the model.

        "content": "Hello! 😊 Yes, I'm here and ready to help. How can I assist you today?",

Here're my gptel and ob-gptel configs in case that is useful:

  (use-package gptel
    :after (transient)
    :config
    (setopt gptel-model 'qwen/qwen3-14b)

    (gptel-make-openai "openrouter"
      :host "openrouter.ai"
      :endpoint "/api/v1/chat/completions"
      :stream t
      :key (lambda ()
             (auth-source-pick-first-password :host "openrouter.ai"))
      :models '(qwen/qwen3-14b
  	      x-ai/grok-4.1-fast))

    (gptel-make-openai "groq"
      :host "api.groq.com"
      :endpoint "/openai/v1/chat/completions"
      :stream t
      :key (lambda () (auth-source-pick-first-password :host "api.groq.com")))

  (use-package ob-gptel
    :ensure (:host github :repo "jwiegley/ob-gptel")
    :after (org gptel)
    :config
    (add-to-list 'org-babel-load-languages '(gptel . t))
    (defun ob-gptel-setup-completions ()
      (add-hook 'completion-at-point-functions
  	      'ob-gptel-capf nil t))
    :hook
    (org-mode . ob-gptel-setup-completions))

I set toggle-debug-on-error but I'm not getting a stack trace.

Any thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions