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

500 Internal Server Error #2199

Closed
Blue-Kod opened this issue Aug 28, 2024 · 2 comments
Closed

500 Internal Server Error #2199

Blue-Kod opened this issue Aug 28, 2024 · 2 comments
Assignees
Labels
bug Something isn't working stale

Comments

@Blue-Kod
Copy link

Bug description
When trying to send an image to any provider (that supports vision), error 500 occurs, although there is no error in the GUI, and everything works. Also, with a simple text message, everything works.

Screenshots
image

Environment

  • 3.10
  • Russia

Additional context

from g4f.client import Client
from g4f.Provider.Blackbox import Blackbox

client = Client(
    provider=Blackbox
)
response = client.chat.completions.create(
    model="blackbox",
    messages=[{"role": "user", "content": "What are on this image?"}],
    image=open("image.png", "rb")
)
print(response.choices[0].message.content)

Traceback (most recent call last): File "C:\Projects\FreeMultimodalChat\chat.py", line 7, in <module> response = client.chat.completions.create( File "C:\Projects\FreeMultimodalChat\.venv\lib\site-packages\g4f\client\client.py", line 118, in create return response if stream else next(response) File "C:\Projects\FreeMultimodalChat\.venv\lib\site-packages\g4f\client\client.py", line 57, in iter_append_model_and_provider for chunk in response: File "C:\Projects\FreeMultimodalChat\.venv\lib\site-packages\g4f\client\client.py", line 29, in iter_response for idx, chunk in enumerate(response): File "C:\Projects\FreeMultimodalChat\.venv\lib\site-packages\g4f\providers\base_provider.py", line 223, in create_completion yield loop.run_until_complete(await_callback(gen.__anext__)) File "C:\Users\logaa\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 649, in run_until_complete return future.result() File "C:\Projects\FreeMultimodalChat\.venv\lib\site-packages\g4f\providers\base_provider.py", line 52, in await_callback return await callback() File "C:\Projects\FreeMultimodalChat\.venv\lib\site-packages\g4f\Provider\Blackbox.py", line 71, in create_async_generator response.raise_for_status() File "C:\Projects\FreeMultimodalChat\.venv\lib\site-packages\aiohttp\client_reqrep.py", line 1088, in raise_for_status raise ClientResponseError( aiohttp.client_exceptions.ClientResponseError: 500, message='Internal Server Error', url=URL('https://www.blackbox.ai/api/chat')

@Blue-Kod Blue-Kod added the bug Something isn't working label Aug 28, 2024
zukixa added a commit to zukixa/gpt4free that referenced this issue Aug 29, 2024
…ider now support Gemini and LLaMa 3.1 models xtekky#2198 with some stuff from xtekky#2196
Copy link

github-actions bot commented Sep 5, 2024

Bumping this issue because it has been open for 7 days with no activity. Closing automatically in 7 days unless it becomes active again.

@github-actions github-actions bot added the stale label Sep 5, 2024
Copy link

Closing due to inactivity.

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

No branches or pull requests

2 participants