You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
					
						
							1.4 KiB
						
					
					
				
			
		
		
	
	
							1.4 KiB
						
					
					
				OpenAPI\Client\AiApi
| Method | HTTP request | Description | 
|---|---|---|
| chat() | POST /v1/ai/chat | 元梦ai-对话 | 
chat()
chat($chat_param): \OpenAPI\Client\Model\ResponseOpenAPIChatResult
元梦ai-对话
元梦ai对话
示例
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\AiApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);
$chat_param = new \OpenAPI\Client\Model\ChatParam(); // \OpenAPI\Client\Model\ChatParam
try {
    $result = $apiInstance->chat($chat_param);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AiApi->chat: ', $e->getMessage(), PHP_EOL;
}
参数
| Name | Type | Description | Notes | 
|---|---|---|---|
| chat_param | \OpenAPI\Client\Model\ChatParam | [optional] | 
返回类型
\OpenAPI\Client\Model\ResponseOpenAPIChatResult
HTTP请求头
- Content-Type: application/json
- Accept: */*