Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
yunwuxin committed Aug 30, 2024
1 parent 782d216 commit f6c5da7
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
用法
## 用法

### 聊天
```php
use think\ai\Client;

Expand Down Expand Up @@ -27,3 +28,19 @@ foreach($result as $chunk){
dump($chunk);
}
```

### 图像
```php
use think\ai\Client;

$client = new Client('YOUR_TOKEN');

//画图
$client->images()->generations($params);
//涂抹编辑
$client->images()->inpainting($params);
//图像扩展
$client->images()->outpainting($params);
```

...其他用法类似

0 comments on commit f6c5da7

Please sign in to comment.