Skip to content

Commit

Permalink
run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
axiomofjoy committed Jan 11, 2024
1 parent eb6c4ee commit e634616
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,9 @@ function getLLMInputMessagesAttributes(
/**
* Converts the body of a completions request to input attributes
*/
function getCompletionInputValueAndMimeType(body: CompletionCreateParamsBase): Attributes {
function getCompletionInputValueAndMimeType(
body: CompletionCreateParamsBase,
): Attributes {
if (typeof body.prompt === "string") {
return {
[SemanticConventions.INPUT_VALUE]: body.prompt,
Expand Down Expand Up @@ -411,7 +413,9 @@ function getChatCompletionLLMOutputMessagesAttributes(
/**
* Converts the completion result to output attributes
*/
function getCompletionOutputValueAndMimeType(completion: Completion): Attributes {
function getCompletionOutputValueAndMimeType(
completion: Completion,
): Attributes {
// Right now support just the first choice
const choice = completion.choices[0];
if (!choice) {
Expand Down

0 comments on commit e634616

Please sign in to comment.