-
Notifications
You must be signed in to change notification settings - Fork 418
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
Vertex with openai #1084
base: main
Are you sure you want to change the base?
Vertex with openai #1084
Conversation
🦋 Changeset detectedLatest commit: 30c4fcf The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
livekit-plugins/livekit-plugins-openai/livekit/plugins/openai/llm.py
Outdated
Show resolved
Hide resolved
livekit-plugins/livekit-plugins-openai/livekit/plugins/openai/llm.py
Outdated
Show resolved
Hide resolved
livekit-plugins/livekit-plugins-openai/livekit/plugins/openai/llm.py
Outdated
Show resolved
Hide resolved
livekit-plugins/livekit-plugins-openai/livekit/plugins/openai/llm.py
Outdated
Show resolved
Hide resolved
livekit-plugins/livekit-plugins-openai/livekit/plugins/openai/llm.py
Outdated
Show resolved
Hide resolved
livekit-plugins/livekit-plugins-openai/livekit/plugins/openai/llm.py
Outdated
Show resolved
Hide resolved
livekit-plugins/livekit-plugins-openai/livekit/plugins/openai/llm.py
Outdated
Show resolved
Hide resolved
livekit-plugins/livekit-plugins-openai/livekit/plugins/openai/llm.py
Outdated
Show resolved
Hide resolved
livekit-plugins/livekit-plugins-openai/livekit/plugins/openai/llm.py
Outdated
Show resolved
Hide resolved
livekit-plugins/livekit-plugins-openai/livekit/plugins/openai/llm.py
Outdated
Show resolved
Hide resolved
livekit-plugins/livekit-plugins-openai/livekit/plugins/openai/llm.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you add this LLM to our test_llm.py.
VertexAI is an important one :)
livekit-plugins/livekit-plugins-openai/livekit/plugins/openai/llm.py
Outdated
Show resolved
Hide resolved
livekit-plugins/livekit-plugins-openai/livekit/plugins/openai/llm.py
Outdated
Show resolved
Hide resolved
if arg_info.type is int and arg_info.choices and model is not None: | ||
from .models import VertexModels | ||
|
||
vertex_models_set = set(get_args(VertexModels)) | ||
|
||
if model in vertex_models_set: | ||
raise ValueError( | ||
f"Parameter '{arg_info.name}' uses 'choices' with 'int', which is not supported by Vertex AI." | ||
) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One issue I see with this approach is that we have to keep a up to date list of the supported models Google has. Maybe we can simply create a dataclass with supported stuff?
like:
@dataclass
class SupportedFunctionArguments:
....
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a good idea, I'll update pr
Idk if this is the right approach: but our anthropic inject a user message if the chatcontext doesn't start with one agents/livekit-plugins/livekit-plugins-anthropic/livekit/plugins/anthropic/llm.py Line 300 in a5ca1a5
|
No description provided.