-
-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can you help me solve the connection waiting? #68
Comments
By default it will be set to
in your |
Hi, friend: (setq org-ai-use-auth-source nil) (use-package org-ai |
Run |
I have do that as your suggestion: following is the message printed, when i pressed the C-c C-c, it gets stuck in the Contacting host: api.openai.com:443! Do i need log out from the chatgpt official website? REQUEST {"messages":[{"role":"user","content":"nil"}],"model":"gpt-3.5-turbo","stream":true} |
No that should not be necessary. Can you run |
Change the model from If this doesn't help please evaluate the following expression and post the result: (let* ((url-request-extra-headers `(("Authorization" . ,(encode-coding-string (string-join `("Bearer" ,(org-ai--openai-get-token)) " ") 'utf-8))
("Content-Type" . "application/json")))
(url-request-method "POST")
(url-request-data (org-ai--payload :messages (org-ai--collect-chat-messages "Hello, how are you?")
:model "gpt-3.5-turbo"
:stream t)))
(pop-to-buffer (url-retrieve-synchronously org-ai-openai-chat-endpoint))) |
Hi , friend
When i press C-c C-c , i get the notice as follow:
REQUEST {"messages":[{"role":"user","content":"hello"}],"model":"gpt-3.5","stream":true}
Contacting host: api.openai.com:443
I have got the api key and set it like this :
(setq org-ai-use-auth-source nil)
(use-package org-ai
:ensure t
:commands (org-ai-mode
org-ai-global-mode)
:init
(add-hook 'org-mode-hook #'org-ai-mode) ; enable org-ai in org-mode
(org-ai-global-mode) ; installs global keybindings on C-c M-a
(setq org-ai-openai-api-token "~/.emacs.d/authinfo.gpg")
:config
(setq org-ai-default-chat-model "gpt-3.5") ; if you are on the gpt-4 beta:
(org-ai-install-yasnippets)) ; if you are using yasnippet and want
ai
snippetsWhere do i get stuck in?
The text was updated successfully, but these errors were encountered: