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

make chat() generic #20

Open
romainfrancois opened this issue Mar 9, 2024 · 3 comments
Open

make chat() generic #20

romainfrancois opened this issue Mar 9, 2024 · 3 comments

Comments

@romainfrancois
Copy link
Contributor

wrt to its first argument, and add methods for :

  • character : like the one we currently have
  • chat_tibble: so that we can have follow up conversations with the 🤖 , should chat_tibble be renamed conversation or just chat ?
@JamesHWade
Copy link
Collaborator

I say stick with chat. A lot of users will assume that chat includes conversation history.

@romainfrancois
Copy link
Contributor Author

I like it. I guess than we'd need some functionality to mesh together history and a new thing

x <- chat("hello")
chat(list("say that in Italian", x))

or perhaps

chat(list(user = "hello", assistant = "...", user = "...", x))

... actually that might be a user case for ... I'll play with this

@romainfrancois romainfrancois added this to the 🪴 spring 2024 milestone Mar 9, 2024
@JamesHWade
Copy link
Collaborator

If we can, I'd like the prompt for the user-facing chat() function to always expect a character rather than a list. Or at least, it would be great if chat(prompt = "my prompt") still works.

We came up with a series of s3 objects in gptstudio to generically handle:

  • building a prompt and associated configuration options
  • performing the api call
  • processing the response

I'm intrigued by .... The approach in gptstudio works, but it feels a bit too complicated.

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