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

OpenAI vs VertexAI #25

Open
mmistroni opened this issue Jun 9, 2024 · 4 comments
Open

OpenAI vs VertexAI #25

mmistroni opened this issue Jun 9, 2024 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@mmistroni
Copy link

mmistroni commented Jun 9, 2024

Hey
this is not a bug, rather a request for info
First off great project!
Secondly, you mention in README that i need an OpenAI key to leverage openbb agents.
Unfortunately i exhausted my credits with OpenAI and now i cannot do anything.
Wanted to leverage VertexAI (or Claude) but i cannot see in the code base where is the link between openbb agents and OpenAI...
the only link i can find is import from langchain_openai import OpenAIEmbeddings

So i guess if i can somehow 'inject' this package langchain-google-vertexai in the flow, i shoud be able to use your openbb agents with VertexAI?

Could you please advise and perhaps suggest some resources i can have a look at to get familiar with this langchain stuff?
FYI i am already an OpenBB user.... so i guess i just need to learn 'the other half' of the openbb agents equation

Many thanks
Marco

@mnicstruwig mnicstruwig self-assigned this Jun 14, 2024
@mnicstruwig mnicstruwig added the enhancement New feature or request label Jun 14, 2024
@mnicstruwig
Copy link
Contributor

mnicstruwig commented Jun 14, 2024

Hey @mmistroni,

Thanks for reaching out.

We use magentic (Github) as our LLM framework in openbb-agents.

By default, we use GPT-4o as our model. magentic has good support for Anthropic models (eg. Opus), and I think VertexAI via LiteLLM (but I'll have to confirm).

Give me a few days, and I'll add something to allow you to specify which model to use.

I can't guarantee those models will perform as well as GPT-4o (which is really good at function calling), and our system prompts are specifically targeting GPT-4o, but there's no harm in opening things up and trying.

@mmistroni
Copy link
Author

mmistroni commented Jun 14, 2024 via email

@djesus-shell
Copy link

Hey @mmistroni,

Thanks for reaching out.

We use magentic (Github) as our LLM framework in openbb-agents.

By default, we use GPT-4o as our model. magentic has good support for Anthropic models (eg. Opus), and I think VertexAI via LiteLLM (but I'll have to confirm).

Give me a few days, and I'll add something to allow you to specify which model to use.

I can't guarantee those models will perform as well as GPT-4o (which is really good at function calling), and our system prompts are specifically targeting GPT-4o, but there's no harm in opening things up and trying.

i would love to use Anthropic... any idea when this will be available? thank you in advance! :D

@mmistroni
Copy link
Author

Hello i am getting this error running the sample

ImportError: Could not import faiss python package. Please install it with pip install faiss-gpu (for CUDA supported GPU) or pip install faiss-cpu (depending on Python version).

could you pls advise?
regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants