You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to run $connector->models()->listModels(); returns:
PHP Fatal error: Uncaught TypeError: Resource\Models::listModels(): Return value must be of type Saloon\Contracts\Response, Saloon\Http\Response returned
Models resource was generated with:
useSaloon\Contracts\Response;
class Models extends Resource
{
publicfunction listModels(): Response
Auto generated SDK using the OpenAi yaml at https://github.com/openai/openai-openapi/blob/master/openapi.yaml
Trying to run
$connector->models()->listModels();
returns:PHP Fatal error: Uncaught TypeError: Resource\Models::listModels(): Return value must be of type Saloon\Contracts\Response, Saloon\Http\Response returned
Models resource was generated with:
ListModels request was generated with:
Changing Models.php to
use Saloon\Http\Response;
seems to fix the issue, but is this the correct way to do it?The text was updated successfully, but these errors were encountered: