XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 1
返回提交历史

XFEstudio/gpt4free

feat(README.md): update documentation and add new features

c5b3de1c
kqlio67 <kqlio67@users.noreply.github.com>
提交于

代码差异

1 个文件 +7 -5
Modified README.md +7 -5
@@ -170,8 +170,8 @@ from g4f.client import Client
170 170 client = Client()
171 171 response = client.chat.completions.create(
172 172 model="gpt-3.5-turbo",
173 messages=[{"role": "user", "content": "Hello"}],
174 ...
173 messages=[{"role": "user", "content": "Say this is a test"}],
174 # Add any other necessary parameters
175 175 )
176 176 print(response.choices[0].message.content)
177 177 ```
@@ -187,11 +187,13 @@ from g4f.client import Client
187 187
188 188 client = Client()
189 189 response = client.images.generate(
190 model="gemini",
191 prompt="a white siamese cat",
192 ...
190 model="dall-e-3",
191 prompt="a white siamese cat",
192 # Add any other necessary parameters
193 193 )
194
194 195 image_url = response.data[0].url
196 print(f"Generated image URL: {image_url}")
195 197 ```
196 198
197 199 [![Image with cat](/docs/cat.jpeg)](https://github.com/xtekky/gpt4free/blob/main/docs/client.md)