Skip to content
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

Conversation feature and GPT-4 support. #59

Closed
hongyi-zhao opened this issue May 11, 2023 · 11 comments
Closed

Conversation feature and GPT-4 support. #59

hongyi-zhao opened this issue May 11, 2023 · 11 comments

Comments

@hongyi-zhao
Copy link

I try to ask my question based on the context, but it seems that the reply from gptel doesn't use the past information.

Any tips for enabling the conversations features when using this package?

Regards,
Zhao

@karthink
Copy link
Owner

By default the full contents of the buffer (up to point) is used as the context. Can you give me an example where the context is ignored?

@hongyi-zhao
Copy link
Author

hongyi-zhao commented May 11, 2023

image

Please compare the result generated by https://github.com/acheong08/ChatGPT:

You: 
2 -3

Chatbot: 
非常抱歉,但我不确定您的问题是什么。如果您需要进一步的帮助,请提供更多细节或明确您的问题,我将尽力回答您。

You: 
please compute the result.

Chatbot: 
I apologize for the confusion. If you're asking for the result of the expression "2 - 3", the answer is:

2 - 3 = -1

@karthink
Copy link
Owner

Attempt 1:

2023-05-11-160100_604x430_scrot

Attempt 2:
2023-05-11-160213_604x430_scrot

I am not able to reproduce this result.

@karthink
Copy link
Owner

Could you try with something less ambiguous, such as the following?
2023-05-11-160351_604x430_scrot

@hongyi-zhao
Copy link
Author

hongyi-zhao commented May 12, 2023

It seems that it works in most cases, but sometimes don't:

image

Remarks:

  1. How to display the cursor as a colored square, as you have shown?
  2. I've tried to use gpt-4, which is my subscription, but failed for all of its models listed here:

The configuration:

(use-package gptel
  :bind
  (
   ("<f2>" . gptel-send)
   )

  :config
  (setq gptel-api-key my-openai-api-key
	   gptel-model "gpt-4"
	)
  )

The query result:

image

See emacs-openai/chatgpt#11 for the related discussion.

@hongyi-zhao hongyi-zhao changed the title Conversations features not observed. Conversation feature and GPT-4 support. May 12, 2023
@karthink
Copy link
Owner

GPT-4 online access is different from GPT-4 API access, there is a waitlist for the latter, see https://openai.com/waitlist/gpt-4-api

The cursor shape is controlled by the cursor-type variable, try (setq cursor-type 'box).

@hongyi-zhao
Copy link
Author

hongyi-zhao commented May 12, 2023

GPT-4 online access is different from GPT-4 API access, there is a waitlist for the latter, see https://openai.com/waitlist/gpt-4-api

Do you mean: even as a subscription user, which is my case, as shown below, of GPT-4, also need to apply on this waitlist to use the GPT-4 API access?

image

@karthink
Copy link
Owner

karthink commented May 12, 2023 via email

@hongyi-zhao
Copy link
Author

By subscription, do you mean https://openai.com/blog/chatgpt-plus?

I mean the following:

image

If so, then yes, this is different from API access. I'm actually not sure what the point of the subscription access is.

Yes, exactly. I also noticed the official statement here:

How can I access the ChatGPT API?
Johanna C. avatar
Written by Johanna C.
Updated over a week ago

The ChatGPT API will allow developers to integrate ChatGPT into their own applications, products, or services. ChatGPT is a sibling model to InstructGPT, which is trained to follow an instruction in a prompt and provide a detailed response. Learn more about ChatGPT in the blog post. To learn more about the ChatGPT API, please visit our API articles.

Please note that the ChatGPT API is not included in the ChatGPT Plus subscription and are billed separately. The API has its own pricing, which can be found at https://openai.com/pricing. The ChatGPT Plus subscription covers usage on chat.openai.com only and costs $20/month.

@karthink
Copy link
Owner

Yeah, I don't understand what one pays $20/mo for.

Anyway, please try a two step conversation like this to establish that the context is being sent along with the current line:
2023-05-11-160351_604x430_scrot

@hongyi-zhao
Copy link
Author

hongyi-zhao commented May 12, 2023

Yeah, I don't understand what one pays $20/mo for.

Only web UI based access permissions for GPT-4 can be obtained.

Anyway, please try a two step conversation like this to establish that the context is being sent along with the current line:

I got exactly the same result:

image

N.B.: Why doesn't the mouse shape and position appear on my screenshot?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants