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]: Vertex AI - Code Gecko stream not working #7360

Open
ishaan-jaff opened this issue Dec 22, 2024 · 2 comments
Open

[Bug]: Vertex AI - Code Gecko stream not working #7360

ishaan-jaff opened this issue Dec 22, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@ishaan-jaff
Copy link
Contributor

ishaan-jaff commented Dec 22, 2024

What happened?

trying to use code-gecko from Vertex - The stream parameter doesn't work:

Relevant log output

curl https://llm/v1/completions --header "Authorization: Bearer xxx" --header 'Content-Type: application/json' -d '{"model": "code-gecko@002", "stream": true, "prompt": "def is_num_prime(val):", "temperature": 0.7, "max_tokens": 100}'
data: {"error": {"message": "litellm.APIConnectionError: 500 Internal error encountered.\nTraceback (most recent call last):\n  File \"/usr/local/lib/python3.11/site-packages/google/api_core/grpc_helpers_async.py\", line 77, in wait_for_connection\n    await self._call.wait_for_connection()\n  File \"/usr/local/lib/python3.11/site-packages/grpc/aio/_call.py\", line 659, in wait_for_connection\n    await self._raise_for_status()\n  File \"/usr/local/lib/python3.11/site-packages/grpc/aio/_call.py\", line 272, in _raise_for_status\n    raise _create_rpc_error(\ngrpc.aio._call.AioRpcError: <AioRpcError of RPC that terminated with:\n\tstatus = StatusCode.INTERNAL\n\tdetails = \"Internal error encountered.\"\n\tdebug_error_string = \"UNKNOWN:Error received from peer ipv4:108.177.15.95:443 {grpc_message:\"Internal error encountered.\", grpc_status:13, created_time:\"2024-12-17T00:38:04.577879316+00:00\"}\"\n>\n\nThe above exception was the direct cause of the following exception:\n\nTraceback (most recent call last):\n  File \"/usr/local/lib/python3.11/site-

Are you a ML Ops Team?

No

What LiteLLM version are you on ?

v1.55.9

Twitter / LinkedIn details

No response

@ishaan-jaff ishaan-jaff added the bug Something isn't working label Dec 22, 2024
@ishaan-jaff
Copy link
Contributor Author

  • we should move code-gecko to using vertex_httpx

@emerzon
Copy link
Contributor

emerzon commented Dec 22, 2024

Issue also happens to other vertex models, such as codestral - It seems that they do not support the stream feature at all, but the Vertex streaming API just fails with Server Error if you try to use it.

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

2 participants