Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php use OpenAI\Responses\Embeddings\CreateResponseEmbedding; test('from', function () ..
Decoded Output download
<?php
use OpenAI\Responses\Embeddings\CreateResponseEmbedding;
test('from', function () {
$result = CreateResponseEmbedding::from(embedding());
expect($result)
->object->toBe('embedding')
->index->toBe(0)
->embedding->toBeArray()->toBe([
-0.008906792,
-0.013743395,
0.009874112,
]);
});
test('to array', function () {
$result = CreateResponseEmbedding::from(embedding());
expect($result->toArray())
->toBe(embedding());
});
?>
Did this file decode correctly?
Original Code
<?php
use OpenAI\Responses\Embeddings\CreateResponseEmbedding;
test('from', function () {
$result = CreateResponseEmbedding::from(embedding());
expect($result)
->object->toBe('embedding')
->index->toBe(0)
->embedding->toBeArray()->toBe([
-0.008906792,
-0.013743395,
0.009874112,
]);
});
test('to array', function () {
$result = CreateResponseEmbedding::from(embedding());
expect($result->toArray())
->toBe(embedding());
});
Function Calls
None |
Stats
MD5 | 0973b95232ae820ebf280a14a0e0ed75 |
Eval Count | 0 |
Decode Time | 84 ms |