Skip to content

Simplify createChatCompletion #666

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

Open
kamath opened this issue Apr 13, 2025 · 2 comments
Open

Simplify createChatCompletion #666

kamath opened this issue Apr 13, 2025 · 2 comments
Labels
good first issue Good for newcomers

Comments

@kamath
Copy link
Member

kamath commented Apr 13, 2025

Right now, you can theoretically use the stagehand.llmClient object to access the underlying LLM for Stagehand.

This can be helpful for times when you want to ask the LLM custom questions that can guide your next step -- for example, if you're writing a Stagehand script, you might want to ask the LLM for what word to input next. This is possible right now, but it's really cumbersome:

Image

It would be awesome to have stagehand.llmClient.generateText() and stagehand.llmClient.generateObject() like the Vercel AI SDK. Bonus points if you add streamText :)

@kamath kamath added the good first issue Good for newcomers label Apr 13, 2025
@yash1744
Copy link
Contributor

yash1744 commented Apr 15, 2025

Yeah @kamath, I think we can wrap our new functionality around the vercel ai's generateText() ,generateObject() ,streamText(), streamObject() methods. can i work on this issue?

@kamath
Copy link
Member Author

kamath commented Apr 15, 2025

yeah have at it!

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

No branches or pull requests

2 participants