You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`ValueError Traceback (most recent call last)
[/usr/local/lib/python3.10/dist-packages/httpx/_urlparse.py](https://as5jcss98q5-496ff2e9c6d22116-0-colab.googleusercontent.com/outputframe.html?vrz=colab_20241219-060121_RC00_707879646#) in normalize_port(port, scheme)
363 try:
--> 364 port_as_int = int(port)
365 except ValueError:
ValueError: invalid literal for int() with base 10: 'generateContent'
During handling of the above exception, another exception occurred:`
I changed the api_base to https://generativelanguage.googleapis.com, the error remains the same as well.
The text was updated successfully, but these errors were encountered:
Yes I have checked it, but I only found 1 provider which is gemini-google ai studio. When I changed provider to google/gemini-1.5-flash, there's also an error like "cannot find the provider". However, this error is no longer present when I use gemini/gemini-1.5-flash as provider.
When I used gemini model following the instructions in "other provider" tag, there's an error of content generation.
here's my code:
lm = dspy.LM( "gemini/gemini-1.5-flash", api_key=GEMINI_API_KEY, api_base="https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash", )
and the problem is:
I changed the
api_base
tohttps://generativelanguage.googleapis.com
, the error remains the same as well.The text was updated successfully, but these errors were encountered: