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

BUG: For v3 branch, setting ollama in config is not working #38

Open
bmabir17 opened this issue Oct 12, 2024 · 0 comments
Open

BUG: For v3 branch, setting ollama in config is not working #38

bmabir17 opened this issue Oct 12, 2024 · 0 comments

Comments

@bmabir17
Copy link

bmabir17 commented Oct 12, 2024

While using this lib with Auto_Jobs_Applier_AIHawk, the following lines are not working and it still calls to openai when i set the config to

llm_model_type: ollama
llm_model:  llama3.1
llm_api_url: http://127.0.0.1:11434/

https://github.com/feder-cr/lib_resume_builder_AIHawk/blob/ab834ddc97bc4a1ee139a11dfc25b997a15ef36e/lib_resume_builder_AIHawk/manager_facade.py#L20C2-L27C69

But when i change manager_facade.py it to

        if config is not None:
            global_config.LLM_MODEL = config['llm_model']
            global_config.LLM_MODEL_TYPE = config['llm_model_type']
            global_config.LLM_API_URL = config['llm_api_url']
        # else:
        #     global_config.LLM_MODEL = 'gpt-4o'
        #     global_config.LLM_MODEL_TYPE = 'openai'
        #     global_config.LLM_API_URL = 'https://api.openai.com/v1/'
        else:
            global_config.LLM_MODEL = 'llama3.1'
            global_config.LLM_MODEL_TYPE = 'ollama'
            global_config.LLM_API_URL = 'http://127.0.0.1:11434/'

it works perfectly and generates resume by calling ollama. What can be done about this?

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

1 participant