Replies: 3 comments 1 reply
-
You can add , web_search=True, when you're using gpt-4 with the Bing provider. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the answer, but I am a little at a loss in setting this parameter. could you please point or write some of the working code? Or leave a link to documentation on this issue. Here is my code, I set the parameter, but when requesting I still can’t use the Internet clientFree = Client() |
Beta Was this translation helpful? Give feedback.
-
Thanks for the help! It was possible to set the desired setting |
Beta Was this translation helpful? Give feedback.
-
Friends, tell me how to use the gpt4 or gpt4turbo model in the code via Copilot with Internet access enabled, so that the response receives up-to-date information from the Internet?
from g4f.client import Client
client = Client()
response = client.chat.completions.create(
model="gpt-3.5-turbo",
messages=[{"role": "user", "content": "Hello"}],
...
)
print(response.choices[0].message.content)
Beta Was this translation helpful? Give feedback.
All reactions