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

LM Studio Support #63

Open
badboyilprimo opened this issue Aug 27, 2024 · 5 comments
Open

LM Studio Support #63

badboyilprimo opened this issue Aug 27, 2024 · 5 comments

Comments

@badboyilprimo
Copy link

Can this work with LM Studio which allows different models to be used more than Ollama?

@LoggeL
Copy link
Collaborator

LoggeL commented Aug 28, 2024

If that has an OpenAI compatible API you can use the OpenAI model provider.

@LoggeL
Copy link
Collaborator

LoggeL commented Aug 28, 2024

Use #60 for that

@badboyilprimo
Copy link
Author

badboyilprimo commented Aug 28, 2024

Thank you for the response, the following works

change models to this in config.py
openai://lmstudio-ai/gemma-2b-it-GGUF

and this
python ./Write.py -Prompt "~\AIStoryWriter\ExamplePrompts\Example1.txt" -InitialOutlineModel "openai://lmstudio-ai/gemma-2b-it-GGUF@http://localhost:1234/v1/" -ChapterOutlineModel "openai://lmstudio-ai/gemma-2b-it-GGUF@http://localhost:1234/v1/"

the thing that I don't understand, is how to make it generate lets say 5 stories and the stop, it seems to be generating stories now non-stop

@badboyilprimo
Copy link
Author

after getting API key error multiple time, I had to change the base URL for openai to LM Studio URL

@LoggeL
Copy link
Collaborator

LoggeL commented Aug 30, 2024

Ah ye sorry. Will adjust the documentation when I get the chance to merge the PR

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