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

XFEstudio/gpt4free

~

4b9504db
Tekky <98614666+xtekky@users.noreply.github.com>
提交于

代码差异

1 个文件 +19 -0
Modified README.md +19 -0
@@ -133,6 +133,7 @@ docker compose down
133 133
134 134 ### The `g4f` Package
135 135
136 #### ChatCompletion
136 137 ```py
137 138 import g4f
138 139
@@ -171,7 +172,25 @@ response = g4f.ChatCompletion.create(
171 172 for message in response:
172 173 print(message)
173 174 ```
175 ##### Completion
176 ```py
177 import g4f
178
179 allowed_models = [
180 'code-davinci-002',
181 'text-ada-001',
182 'text-babbage-001',
183 'text-curie-001',
184 'text-davinci-002',
185 'text-davinci-003'
186 ]
174 187
188 response = g4f.Completion.create(
189 model = 'text-davinci-003',
190 prompt = 'say this is a test')
191
192 print(response)
193 ```
175 194
176 195 ##### Providers:
177 196 ```py