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

Using dspy with different models #1832

Open
yarelm opened this issue Nov 20, 2024 · 1 comment
Open

Using dspy with different models #1832

yarelm opened this issue Nov 20, 2024 · 1 comment

Comments

@yarelm
Copy link

yarelm commented Nov 20, 2024

Hi!
I see dspy is configured as such:

lm = dspy.LM('openai/gpt-4o-mini')
dspy.configure(lm=lm)

What if I want to use a different model with dspy in different parts of my code? since dspy.configure() seems to be a global configuration, how can I control it?

@okhat
Copy link
Collaborator

okhat commented Nov 20, 2024

Hey @yarelm !

https://dspy.ai/learn/programming/language_models/#using-multiple-lms

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