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

Chinese text in the response even if the request is in another language #1094

Closed
nBalykin opened this issue Oct 17, 2023 · 9 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@nBalykin
Copy link

I made myself a personal telegram bot with your API. it's magical. but there is a problem. If I use "gpt-3.5-turbo", the api bot often responds with the text 流量异常. I tried to understand through logging which provider it was and simply remove it from the g4f code, but in the log the call goes to RetryProvider.

In this regard, I have two questions:

  1. What kind of provider can behave this way?
  2. Is there a way to display the real provider in the log, and not the RetryProvider layer?

image

@nBalykin nBalykin added the bug Something isn't working label Oct 17, 2023
@zukixa
Copy link
Contributor

zukixa commented Oct 17, 2023

pretty sure its yqcloud, could also be acytoo/aitanthu/aichat, but not sure on those

@nBalykin
Copy link
Author

pretty sure its yqcloud, could also be acytoo/aitanthu/aichat, but not sure on those

Can you please tell me how to disable this provider for all g4f logic?

@zukixa
Copy link
Contributor

zukixa commented Oct 17, 2023

as per #1064
image

@nBalykin
Copy link
Author

nBalykin commented Oct 17, 2023

If I understand everything correctly, these providers are used when choosing the gpt-3.5-turbo model. Now I’ll try to disable each of them in turn and write if the problem is solved. It will probably be necessary to remove this Chinese provider from g4f
image

Update:
I think it was FreeGpt. I've ignore it and now I do not have chinise in respoce. Thanks!

But I think there is some bug in logging (It should display the real provider, not RetryProvider). So dont close issue for now.

@321nextdev
Copy link

Same issue here too

@321nextdev
Copy link

image

@321nextdev
Copy link

as per #1064 image

sadly didn't help

@nBalykin
Copy link
Author

Same issue here too

image

@Lin-jun-xiang
Copy link
Contributor

@nBalykin
Now u can upgrade g4f, then use g4f.logging=True.

When the logging=True, the terminal will show u which provider was trying.

import g4f

g4f.logging = True # enable

print(
    g4f.ChatCompletion.create(
            model='gpt-3.5-turbo',
            messages=[{"role": "user", "content": "hello"}],
    )
)

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

5 participants