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

refactor: extract model configuration in separate file #59

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

borisyankov
Copy link
Contributor

@borisyankov borisyankov commented Dec 6, 2024

The behavior is kept exactly the same but now allows for easy and simple change of model used by importing a different file than model.ts

This approach is very flexible, as Vercel AI SDK support many models out of the box, and the difference is a few lines of code.

Want to configure a couple of proxies (like Helicon etc)? Easy. It is just code.

The behavior is kept exactly the same but now allows for
easy and simple change of model used by changing or replacing model.ts

This approach is very flexible as Vercel AI SDK support many models
out of the box, and the difference is a few lines of code.
@@ -88,7 +82,7 @@ while (true) {
s.start(chalk.gray('Thinking...'))

const response = await generateText({
model: openai(AI_MODEL),
model,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this!

This will probably clash with @grabbou PR: #57

Let's get the other one merged first and then this one

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

Successfully merging this pull request may close these issues.

2 participants