Skip to content

Commit

Permalink
feat: Include logprobs in result metadata from ChatOpenAI (#535)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmigloz authored Aug 21, 2024
1 parent 8470a24 commit 1834b3a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/langchain_openai/lib/src/chat_models/mappers.dart
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ extension CreateChatCompletionResponseMapper on CreateChatCompletionResponse {
'model': model,
'created': created,
'system_fingerprint': systemFingerprint,
'logprobs': choice.logprobs?.toMap(),
},
usage: _mapUsage(usage),
);
Expand Down

0 comments on commit 1834b3a

Please sign in to comment.