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]: Being able to persist my default model which is not the OpenAI key (fabric default) #767

Closed
1 task done
QCadjunct opened this issue Jul 25, 2024 · 2 comments
Closed
1 task done
Labels
bug Something isn't working

Comments

@QCadjunct
Copy link

QCadjunct commented Jul 25, 2024

What happened?

[Bug]: Fabric Dependency Issues with gRPC and Google Cloud Libraries] #747 (comment))
#747

This is a bug fix and feature enhancement. Why is this a bug in my eyes since it is not flexible enough to handle variations on a theme to be persisted in the shell and being able to reset the changeDefaultModel and restart the shell.

There needs to be a way to persist the DefaultModel in fabric --changeDefaultModel based upon the --changeDefaultModel command.

I only want to use Google's models/gemini-1.5-pro and ollama models. I want exclude for the time being OpenAI (fabric default) and Claude.ai.

In the re-installation process

1.fabric --listmodels and found models/gemini-1.5-pro
1.fabric --changeDefaultModel models/gemini-1.5-pro

###At this point the gRPC error, was still occurring but I was getting answers from fabric
Once, I reboot OpenAI took precedence and returned the error "Error: Client error '401 Unauthorized' for url 'https://api.openai.com/v1/models'". This reminds me of the "Harry Belafonte & Odetta - A Hole in the Bucket: "https://www.youtube.com/watch?v=xVAvMIhvqfk"

Also, add as many keys as you like but have a way to reset a combination of keys which are dynamically persisted but can be changed and restart the shell and happy fabric-ing to handle as an example (Fabric: This OPENSOURCE AI Framework can AUTOMATE YOUR LIFE & ANY TASK (Setup with Ollama & Groq) : "https://www.youtube.com/watch?v=Iup3-Jvkrhg" ) as a permutation of the ability to reset a combination of keys

Reboot error : I followed the suggested format a similar way described by Joshua Fuller

After a reboot, I get this error "Error: Client error '401 Unauthorized' for url 'https://api.openai.com/v1/models'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/401"

Full Uninstall and Reinstallation:

Uninstalled fabric using pipx: pipx uninstall fabric

  1. Deleted the local fabric repository: rm -rf ~/github/fabric
  2. Re-cloned the fabric repository from GitHub: git clone https://github.com/danielmiessler/fabric.git
  3. Reinstalled fabric using pipx: pipx install fabric
  4. Re-setup fabric as a new installation: fabric --setup
  5. Bypassed the openai key and claude.ai key
  6. Inserted Google generative ai api key and youtube api key
  7. I performed these steps twice to ensure a clean installation.
  8. I tested that fabric was installed properly:

Version check

  • Yes I was.

Relevant log output

After a reboot, I get this error "Error: Client error '401 Unauthorized' for url 'https://api.openai.com/v1/models'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/401"

It requires me to use the temporary suggestion in https://github.com/danielmiessler/fabric/issues/747 to get it to work temporarily.  Forcing me to reinstall after any reason to reboot my machines.

Relevant screenshots (optional)

No response

@QCadjunct QCadjunct added the bug Something isn't working label Jul 25, 2024
@QCadjunct QCadjunct changed the title [Bug]: Being able to persist my default model which is not the OpenAI (fabric default) [Bug]: Being able to persist my default model which is not the OpenAI key (fabric default) Jul 25, 2024
@matigumma
Copy link

its right....
api call to api.openai.com/v1/models require an api_key....

image

by default appear to use gpt-4-turbo-preview as DEFAULT_MODEL

image

and line 417 on utils asume it is configured and try to call openai service

image

@QCadjunct
Copy link
Author

QCadjunct commented Jul 26, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants