);
=head3 Parameters
=over 4
=back
=head3 Request Body
=head3 Content Type: C<application/json>
Example:
{
"certificate_ids" : [
"cert_abc"
0>
Certificates activated successfully.
=head4 Content Types:
=over 4
=item * C<application/json>
Example (See the L<OpenAI spec for more detail|https://github.com/openai/openai-openapi/blob/ma
# deal with boolean stuff so we don't pollute our object
# with JSON
if (ref($val) eq 'JSON::PP::Boolean') {
$val = !!$val;
}
$obj->$field($
alars";
}
else {
my $val = $hash->{$field};
if (ref($val) eq 'JSON::PP::Boolean') {
$val = 0+$val;
}
$obj->$field($val);
}
: C<200>
The evaluation run output item
=head4 Content Types:
=over 4
=item * C<application/json>
Example (See the L<OpenAI spec for more detail|https://github.com/openai/openai-openapi/blob/ma
sponses
=head4 Status Code: C<200>
OK
=head4 Content Types:
=over 4
=item * C<application/json>
Example (See the L<OpenAI spec for more detail|https://github.com/openai/openai-openapi/blob/ma
>
Project API key deleted successfully.
=head4 Content Types:
=over 4
=item * C<application/json>
Example (See the L<OpenAI spec for more detail|https://github.com/openai/openai-openapi/blob/ma
Error response for various conditions.
=head4 Content Types:
=over 4
=item * C<application/json>
Example (See the L<OpenAI spec for more detail|https://github.com/openai/openai-openapi/blob/ma
Project API key retrieved successfully.
=head4 Content Types:
=over 4
=item * C<application/json>
Example (See the L<OpenAI spec for more detail|https://github.com/openai/openai-openapi/blob/ma
sponses
=head4 Status Code: C<200>
OK
=head4 Content Types:
=over 4
=item * C<application/json>
Example (See the L<OpenAI spec for more detail|https://github.com/openai/openai-openapi/blob/ma
ent Type: C<application/json>
=head3 Responses
=head4 Status Code: C<200>
OK
=head4 Content Types:
=over 4
=item * C<application/json>
Example (See the L<O
,
"bytes": 2147483648,
"created_at": 1719184911,
"filename": "training_examples.jsonl",
"purpose": "fine-tune",
"status": "completed",
"expires_at": 1719127296,
"bytes": 2147483648,
"created_at": 1719186911,
"filename": "training_examples.jsonl",
"purpose": "fine-tune",
}
}
=back
=head1 SEE ALSO
L<OpenAPI::Client::Ope
<200>
Certificate deleted successfully.
=head4 Content Types:
=over 4
=item * C<application/json>
Example (See the L<OpenAI spec for more detail|https://github.com/openai/openai-openapi/blob/ma
00>
Certificate retrieved successfully.
=head4 Content Types:
=over 4
=item * C<application/json>
Example (See the L<OpenAI spec for more detail|https://github.com/openai/openai-openapi/blob/ma
ication/json>
=head3 Responses
=head4 Status Code: C<200>
Certificate modified successfully.
=head4 Content Types:
=over 4
=item * C<application/json>
Exam
ct service accounts listed successfully.
=head4 Content Types:
=over 4
=item * C<application/json>
Example (See the L<OpenAI spec for more detail|https://github.com/openai/openai-openapi/blob/ma
Error response when project is archived.
=head4 Content Types:
=over 4
=item * C<application/json>
Example (See the L<OpenAI spec for more detail|https://github.com/openai/openai-openapi/blob/ma
n/json>
=head3 Responses
=head4 Status Code: C<200>
Project service account created successfully.
=head4 Content Types:
=over 4
=item * C<application/json>
=> $handle // *STDERR,
encoder => sub { ... } // \&Data::Dumper::Dumper || \&encode_json,
);
Create a new exporter. Takes an optional C<handle> parameter which will be
used as the t
_FORMAT> environment variable. Currently, the
only supported value is C<json>, in which case the data will be encoded
with L<JSON::MaybeXS/encode>.
The behaviour of the default encoder can be further
the keys or values they fall into. The resulting pairs will
be passed directly as arguments to L<JSON::MaybeXS/new> or L<Data::Dumper> as
appropriate.
The default configuration for L<Data::Dumper> i
sponses
=head4 Status Code: C<200>
OK
=head4 Content Types:
=over 4
=item * C<application/json>
Example (See the L<OpenAI spec for more detail|https://github.com/openai/openai-openapi/blob/ma
gether
with the DataDog specific data like C<resource_name>.
This structure will be send of as a JSON string to the local installed DataDog
agent.
=cut
our $VERSION = 'v0.47.2';
use English;
us
NV;
use MooX::ProtectedAttributes;
use MooX::Should;
use Carp;
use HTTP::Request ();
use JSON::MaybeXS qw(JSON);
use LWP::UserAgent;
use PerlX::Maybe qw/maybe provided/;
use Regexp::Common qw/URI/;
u
uild__default_http_headers {
return [
'Content-Type' => 'application/json; charset=UTF-8',
'Datadog-Meta-Lang' => 'perl',
'Datadog-Meta-Lang-In
>
Project API keys listed successfully.
=head4 Content Types:
=over 4
=item * C<application/json>
Example (See the L<OpenAI spec for more detail|https://github.com/openai/openai-openapi/blob/ma
Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Ou
Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
**Important:** when using JSON mode, you **must** also
instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting
/docs/guides/images> inputs to generate L<text|https://platform.openai.com/docs/guides/text>
or L<JSON|https://platform.openai.com/docs/guides/structured-outputs> outputs. Have the model call
your own
ent Type: C<application/json>
=head3 Responses
=head4 Status Code: C<200>
OK
=head4 Content Types:
=over 4
=item * C<application/json>
Example (See the L<O
package Koha::Contrib::ValueBuilder::RepeatableAutocomplete;
use strict;
use warnings;
use JSON qw(to_json);
# ABSTRACT: Repeatable autcomplete value-builder for Koha
our $VERSION = '1.006'; # VERSI
my $val = {
function_name => $params->{id},
data => to_json( $args->{data} ),
target => $args->{target},
minlength => $arg
function_name => $params->{id},
data => to_json( $args->{data} ),
target_map => to_json( $args->{target_map}),
minlength => $args->{minlength
se experimental 'signatures';
use feature 'state';
use YAML::XS qw(LoadFile);
use Path::Tiny;
use JSON::PP;
use Carp qw(croak);
use Clone qw(clone);
use Template;
use Markdown::Pod;
# FIXME: switch
while those examples are easier to read and more
# comprehensive, they're often not valid JSON. We return them as-is
# and let the calling code handle it. Because this is a *recursive*
= Template->new( { TRIM => 1 } );
my $template = _path_template();
my $json = JSON::PP->new->pretty->canonical;
my %template_data = (
path
C<200>
A list of organization API keys.
=head4 Content Types:
=over 4
=item * C<application/json>
Example (See the L<OpenAI spec for more detail|https://github.com/openai/openai-openapi/blob/ma
);
=head3 Parameters
=over 4
=back
=head3 Request Body
=head3 Content Type: C<application/json>
Example:
{
"name" : "New Admin Key"
}
C<200>
The newly created admin API key.
=head4 Content Types:
=over 4
=item * C<application/json>
Example (See the L<OpenAI spec for more detail|https://github.com/openai/openai-openapi/blob/ma
nfirmation that the API key was deleted.
=head4 Content Types:
=over 4
=item * C<application/json>
Example (See the L<OpenAI spec for more detail|https://github.com/openai/openai-openapi/blob/ma
<200>
Details of the requested API key.
=head4 Content Types:
=over 4
=item * C<application/json>
Example (See the L<OpenAI spec for more detail|https://github.com/openai/openai-openapi/blob/ma
200>
Usage data retrieved successfully.
=head4 Content Types:
=over 4
=item * C<application/json>
Example (See the L<OpenAI spec for more detail|https://github.com/openai/openai-openapi/blob/ma