Skip to content

Bedrock aws access key#849

Open
leothomas wants to merge 17 commits intogenerative-computing:mainfrom
leothomas:bedrock_aws_access_key_id
Open

Bedrock aws access key#849
leothomas wants to merge 17 commits intogenerative-computing:mainfrom
leothomas:bedrock_aws_access_key_id

Conversation

@leothomas
Copy link
Copy Markdown

@leothomas leothomas commented Apr 13, 2026

Misc PR

Type of PR

  • Bug Fix
  • New Feature
  • Documentation
  • Other

Description

Testing

  • Tests added to the respective file if code was changed
  • New code has 100% coverage if code as added
  • Ensure existing tests and github automation passes (a maintainer will kick off the github automation when the rest of the PR is populated)

@leothomas leothomas requested review from a team, jakelorocco and nrfulton as code owners April 13, 2026 19:05
@github-actions
Copy link
Copy Markdown
Contributor

The PR description has been updated. Please fill out the template for your PR to be reviewed.

@leothomas
Copy link
Copy Markdown
Author

Link to issue: #564

Comment on lines +491 to +495
stream_logprobs = getattr(chunk.choices[0], "logprobs", None)
if stream_logprobs is not None:
if "logprobs" not in mot._meta:
mot._meta["logprobs"] = []
mot._meta["logprobs"].append(stream_logprobs)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ajbozarth can you chime in on whether this something we should add a mot field for instead of putting in _meta (cf GenerationMetadata)?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It took some time to figure out exactly what I wanted to say, but I think I got Claude to summarize my thoughts correctly:


The pattern here would be mot.logprobs rather than adding it into GenerationMetadata
(which holds execution metadata: usage, model, provider, etc.). I'd lean toward
keeping it in _meta for now for two reasons:

  1. Type isn't settled. In streaming it accumulates as a list of per-chunk objects; in
    non-streaming it's a single object. A public field needs a consistent, defined type.
  2. Coverage is narrow. Logprobs are only returned when explicitly requested, and only
    by some backends. The existing public fields on mot are things every backend always
    populates.

If logprobs support expands to other backends, that would be the right time to define the
type and promote it to a real field — the same process the telemetry fields went through
before landing in GenerationMetadata.


@nrfulton
Copy link
Copy Markdown
Member

@leothomas sorry we never got around to merging this in; I'll shepherd from here. Likely we can get it merged some time next week or so.

@leothomas
Copy link
Copy Markdown
Author

No problem at all @nrfulton - thanks for following up! Let me know if there's anything I can assist with

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants