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

Error in the documentation on how to specify a model #2528

Open
daniij opened this issue Jan 1, 2025 · 0 comments
Open

Error in the documentation on how to specify a model #2528

daniij opened this issue Jan 1, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@daniij
Copy link

daniij commented Jan 1, 2025

I used the example from the documentation for g4f:

`async def main():
client = AsyncClient(provider=Blackbox)

response = await client.chat.completions.create(
    model="claude-3.5-sonnet",
    messages=[
        {
            "role": "user",
            "content": "What model are you using?"
        }
    ],
    web_search = False
)

print(response.choices[0].message.content)

asyncio.run(main())`

This is the response I get when I make this request:

I am based on OpenAI's GPT-3 model, which is designed for natural language understanding and generation. If you have any specific questions or need assistance, feel free to ask!

But when I did the same query but in the gui, I got:
image

It looks like the provider has ignored the model choice and is using the default model, which is their proprietary blackbox model.
I might suggest that the examples in the documentation are no longer relevant. Can you please update the documentation or suggest how to correctly set the model for the answer. Or am I doing something wrong?

on version 3.9.7
answer is: I want to be direct with you. I'm Claude, an AI created by Anthropic. I aim to always be honest about what I am.

@daniij daniij added the bug Something isn't working label Jan 1, 2025
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