Repository navigation
[release] v0.125.1 - #7813
[release] v0.125.1#7813
Conversation
Signed-off-by: Yunus Ardaguney <yunusarda-sudo@users.noreply.github.com>
Signed-off-by: Yunus Ardaguney <yunusarda-sudo@users.noreply.github.com>
Signed-off-by: Yunus Ardaguney <yunusarda-sudo@users.noreply.github.com>
…ontent
A native door, POST /gateways/llms/builtin/{provider}/v1beta/models/{model}:streamGenerateContent,
relays Pi's Google client to Vertex's native operation on the platform's account:
- the model comes from the path (bare id, named google/<id> for the allowlist and rate card);
- an allowlist refuses every request field the rate card does not price;
- thinking is normalized to a level these models accept (off, budget 0 and MINIMAL are LOW);
- usage is read from usageMetadata, tool-use prompt as input, thoughts as output;
- the stall limit, retries and the nudged retry body apply as on the chat door;
- errors are answered in Google's shape with the agenta code marker;
- the placeholder x-goog-api-key is never forwarded.
The connection resolution names protocol=gemini for the built-in Vertex endpoint; provider and
deployment stay openai/custom, so a harness that ignores the field keeps the chat door.
… when it is served natively - SDK: the connection resolution's protocol hint rides to the runner as modelConnection.protocol; the base URL stays the OpenAI-compatible /v1 route, so an older runner keeps working. - Runner: with protocol=gemini on a gateway route, models.json registers Pi's google-generative-ai client on the /v1beta base, with the bare Gemini id and reasoning on. The protocol joins the session identity and the runtime digest only when present. - Classifier: Pi's Google client wording for a broken stream and a malformed tool call.
…l configs Review follow-ups: the allowlist walks every protocol object (function-response parts, inline data, declarations, tool config, safety settings, thinking config) so a nested fileData cannot reach Vertex; the native door refuses a body that is not a JSON object with a Google-shaped 400; a null generationConfig or thinkingConfig gets the LOW default.
…e client request Review follow-ups: a shared golden for the native route's model connection (SDK writes it, runner reads it); the session identity and runtime digest of a connection without the protocol are pinned to their pre-change values; a mocked fetch checks the URL, credential header and placeholder key Pi's Google client sends; a stream cut inside an event reads as a lost connection.
… route Pi's default thinking level is medium, and the runner sets none, so marking the model as reasoning would make every built-in turn think at MEDIUM and stream its thoughts. Unmarked, Pi sends no thinking setting, as on the OpenAI route, and the gateway applies LOW.
…e design doc Final review follow-ups: refusals for system-instruction file references, unknown inline-data and function-calling fields and malformed nested shapes, each with zero upstream calls; opaque arguments, responses and schemas pass. The design doc no longer promises a native ceiling or tests for removed approaches.
…ess environment Bedrock and SageMaker calls now carry their AWS credentials as litellm arguments of the call. The services process environment is no longer edited while a call runs, so concurrent calls never see each other's credentials. Where the host's provider keys may not serve requests (the EE default, AGENTA_SERVICES_ENV_PROVIDER_KEYS_ENABLED off), a Bedrock or SageMaker call must sign with its connection's own credentials. A call without them stops with a 400, and the services container removes the AWS credential variables from its environment at start. Self-hosted OSS keeps using the host's AWS role for connections without keys. The Bedrock bearer token variables are held out of the environment with the other provider keys.
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
… rows test_get_project_by_workspace_keeps_the_legacy_answer read every workspace in the shared test database. A test that ran in parallel could delete a project between the test's two reads, so the set of tied projects came back empty and the assert failed. The test now checks only the three workspaces it seeds, with the shapes it needs: a workspace with a default project, a project that is not default and a project with a NULL default; a workspace with one default project; a workspace whose only project is not default.
…pair litellm fills a missing aws_session_token from AWS_SESSION_TOKEN. A connection that carries its own key pair then signs with a token the host set for another identity, and the call fails. Pass an empty token in that case. Also isolate the host AWS variables in the drop test.
…tials fix(sdk): pass cloud credentials per call instead of through the process environment
📘 Docs preview
Pages changed in this pull request
This comment updates in place on every push. |
Website previewPreview URL: https://pr-7813-agenta-website-preview.mahmoud-637.workers.dev Built from |
Railway Preview Environment
Dependent tests finished. Post /preview for manual review. Environment absence verified; retained storage requires separate provider accounting. Post |
test(api): the legacy workspace lookup test reads only its own seeded rows
docs(docs): add the v0.125.0 changelog entry for private agents and chats
The diagram was a demo image for the PR description. It is not used by the package, so it does not belong in the repository.
…debar cards Carries the entries from draft PRs #7486 to #7492 in one change, because each draft added a card at the top of changelog.json and they conflict with each other. Three entries are updated to match the current app: the Analytics tab is not the Settings landing page and its card is named Failures by agent, Enter adds a quote to the message and Cmd/Ctrl+Enter sends it, and the template page side card shows the apps and the first message instead of the model and the author.
fix(comments): drop dangling colon when a CSV cell's column has no header name
…step [ci] Run the office viewer bundle check as an independent CI job [#7771]
docs(changelog): add the seven October changelog entries
[docs] Update API reference docs
docs: add mosifu and yunusarda-sudo to the contributors list
…ative Gemini door A gateway timeout reached Pi's Google client as a 408 with an unmarked sentence, which Pi does not retry and the runner could not classify. It is now a 504 with the marked upstream sentence, as a timeout mid-stream already was. A stream that closed inside an event reached the client as a half event, which fails with "Incomplete JSON segment", also not retried. The half event is now dropped and the caller gets the error event a broken connection gets. Also declare modelConnection.protocol on the wire schema.
fix(sdk): prepend default http scheme to schemeless AGENTA_API_URL in parse_url
docs: add itsgintoki to the contributors list
…eaves it open Google's client throws "Incomplete JSON segment" on any bytes after the last blank line, a whole event included, which would lose the finish reason and the usage.
feat(gateway): serve built-in Gemini over Google's native protocol
…mini route
Pi's Google client keeps only the gateway's error body, in Google's shape, with no HTTP status
prefix: {"error": {"code": 403, "message": "... ⟦agenta_code:model_not_allowed⟧", "status":
"PERMISSION_DENIED"}}. The parser only knew a string code and the classifier only a "403 {...}"
line, so every gateway refusal on the native route read as an unclassified run error.
- The parser takes the gateway code from the marker when code is the HTTP status.
- The classifier reads the status of a Google-shaped body, as the OpenAI route's line.
- The provider sentence drops the machine marker, on both routes.
Review follow-ups: the status line is built only for a body that carries the gateway's marker,
a numeric code and a string status, so another {"error": ...} in some text is not read as a
model refusal; the marker stays in the message, as on the OpenAI route, because the runner
re-reads it for the gateway's code and the web app strips it for display.
fix(runner): classify gateway refusals on the native Gemini route
mmabrouk
left a comment
There was a problem hiding this comment.
🤖 The AI agent says: Approved on Mahmoud's instruction after the v0.125.1 production deploy went green in US (workflow 29 runs 40364774791 and 40365956256) and EU (runs 40372897066 and 40375008444), deployed in two steps per region, with live checks passing in both regions.
New version v0.125.1 in
Final QA
:streamGenerateContentand none on the built-in chat-completions route for these models; each call has a wallet debit and a trace span with token usage. Also continue one built-in Gemini chat that was started before the deploy: its next turn must answer.Deploy steps