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

Add environment overrides per-task #24

Open
happy15 opened this issue Mar 4, 2024 · 4 comments
Open

Add environment overrides per-task #24

happy15 opened this issue Mar 4, 2024 · 4 comments

Comments

@happy15
Copy link

happy15 commented Mar 4, 2024

Hi, firstly big applause to this awesome project 👏

I want to switch to qwen for Chinese content processing and leave mistral for other languages. So, the idea is to support multiple settings triggered by different shortcuts.

Any chance that's on the roadmap?

@jasonjmcghee
Copy link
Owner

jasonjmcghee commented Mar 5, 2024

Thank you!

Already possible! checkout the example in the readme.

[Settings + Example] (https://github.com/jasonjmcghee/plock?tab=readme-ov-file#using-settings)

@jasonjmcghee
Copy link
Owner

Let me know if I misunderstood, but I show gpt and Perplexity with different shortcuts in the same readme.

Closing for now, happy to reopen!

@happy15
Copy link
Author

happy15 commented Mar 7, 2024

Thank you!

Already possible! checkout the example in the readme.

[Settings + Example] (https://github.com/jasonjmcghee/plock?tab=readme-ov-file#using-settings)

qwen and mistral model are both served by ollama, and I see one "OLLAMA_MODEL" entry in the "environment" section of settings.json. How can I do it? I assume that the ollama porcess read OLLAMA_MODEL as environment variable, right?

@jasonjmcghee
Copy link
Owner

Ah interesting. We could add the concept of an environment variable override to each task. I assumed you'd just write a bash script to call Ollama, but it's true there's a built in way to use it.

@jasonjmcghee jasonjmcghee changed the title multiple settings for different model usage? Add environment overrides per-task Mar 7, 2024
@jasonjmcghee jasonjmcghee reopened this Mar 7, 2024
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