Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -1240,6 +1240,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
-- --check` and `python3 scripts/check_dto_vectors.py <languages>` guard the
files and the codecs.

- `aimux_providers::xai` follows the upstream `@ai-sdk/xai` file layout
(RFC-0046). The sub-modules `xai::convert`, `xai::responses::convert` and
`xai::responses::types` no longer exist; their public items are re-exported
instead. `xai::convert::supports_reasoning_effort` is now
`xai::supports_reasoning_effort`.
`xai::convert::resolve_provider_reference`, the items of
`xai::responses::convert` (`build_responses_request_body`,
`convert_to_xai_responses_input`, `prepare_responses_tools`,
`convert_xai_responses_usage`, `map_xai_responses_finish_reason`, ...) and
the items of `xai::responses::types` (`XaiResponsesResponse`,
`XaiResponsesUsage`, ...) are now at `xai::responses`. Exports at the crate
root and the `xai` module root are unchanged.

- `aimux_providers::vertex` follows the upstream `@ai-sdk/google-vertex` file
layout (RFC-0046). The sub-module `vertex::image` is no longer public; use
`VertexImageModel`, re-exported at `aimux_providers::vertex`, instead of
Expand Down
36 changes: 18 additions & 18 deletions aimux-providers/layout.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2554,7 +2554,7 @@ issue = 275

[[xai.files]]
upstream = "src/get-response-metadata.ts"
rust = "xai/responses/mod.rs"
rust = "xai/responses/responses_language_model.rs"
status = "mapped"

[xai.files.tests]
Expand Down Expand Up @@ -2593,56 +2593,56 @@ reason = "Realtime is out of scope (docs/aisdk-architecture-alignment.md, 本期

[[xai.files]]
upstream = "src/responses/convert-to-xai-responses-input.ts"
rust = "xai/responses/convert.rs"
rust = "xai/responses/convert_to_responses_input.rs"
status = "mapped"

[xai.files.tests]

[[xai.files]]
upstream = "src/responses/convert-xai-responses-usage.ts"
rust = "xai/responses/convert.rs"
rust = "xai/responses/convert_responses_usage.rs"
status = "mapped"

[xai.files.tests]

[[xai.files]]
upstream = "src/responses/map-xai-responses-finish-reason.ts"
rust = "xai/responses/convert.rs"
rust = "xai/responses/map_responses_finish_reason.rs"
status = "mapped"

[xai.files.tests]

[[xai.files]]
upstream = "src/responses/xai-responses-api.ts"
rust = "xai/responses/types.rs"
rust = "xai/responses/responses_api.rs"
status = "mapped"

[xai.files.tests]

[[xai.files]]
upstream = "src/responses/xai-responses-language-model-options.ts"
rust = "xai/responses/convert.rs"
rust = "xai/responses/responses_language_model_options.rs"
status = "mapped"

[xai.files.tests]

[[xai.files]]
upstream = "src/responses/xai-responses-language-model.ts"
rust = "xai/responses/mod.rs"
rust = "xai/responses/responses_language_model.rs"
status = "mapped"

[xai.files.tests]

[[xai.files]]
upstream = "src/responses/xai-responses-prepare-tools.ts"
rust = "xai/responses/convert.rs"
rust = "xai/responses/responses_prepare_tools.rs"
status = "mapped"

[xai.files.tests]

[[xai.files]]
upstream = "src/supports-reasoning-effort.ts"
rust = "xai/convert.rs"
rust = "xai/supports_reasoning_effort.rs"
status = "mapped"

[xai.files.tests]
Expand Down Expand Up @@ -2704,14 +2704,14 @@ reason = "Batch is out of scope (docs/aisdk-architecture-alignment.md, 本期范

[[xai.files]]
upstream = "src/xai-error.ts"
rust = "xai/mod.rs"
rust = "xai/error.rs"
status = "mapped"

[xai.files.tests]

[[xai.files]]
upstream = "src/xai-file-part-options.ts"
rust = "xai/responses/convert.rs"
rust = "xai/responses/convert_to_responses_input.rs"
status = "mapped"

[xai.files.tests]
Expand All @@ -2733,7 +2733,7 @@ issue = 275

[[xai.files]]
upstream = "src/xai-provider.ts"
rust = "xai/mod.rs"
rust = "xai/provider.rs"
status = "mapped"

[xai.files.tests]
Expand All @@ -2745,42 +2745,42 @@ sub-feature = [

[[xai.files]]
upstream = "src/xai-speech-model-options.ts"
rust = "xai/speech.rs"
rust = "xai/speech_model.rs"
status = "mapped"

[xai.files.tests]

[[xai.files]]
upstream = "src/xai-speech-model.ts"
rust = "xai/speech.rs"
rust = "xai/speech_model.rs"
status = "mapped"

[xai.files.tests]

[[xai.files]]
upstream = "src/xai-transcription-model-options.ts"
rust = "xai/transcription.rs"
rust = "xai/transcription_model.rs"
status = "mapped"

[xai.files.tests]

[[xai.files]]
upstream = "src/xai-transcription-model.ts"
rust = "xai/transcription.rs"
rust = "xai/transcription_model.rs"
status = "mapped"

[xai.files.tests]

[[xai.files]]
upstream = "src/xai-video-model-options.ts"
rust = "xai/video.rs"
rust = "xai/video_model.rs"
status = "mapped"

[xai.files.tests]

[[xai.files]]
upstream = "src/xai-video-model.ts"
rust = "xai/video.rs"
rust = "xai/video_model.rs"
status = "mapped"

[xai.files.tests]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1840,7 +1840,7 @@ fn annotation_source(annotation: &Value, provider_key: &str) -> Result<Source, A
/// Generate a unique source ID for streaming annotation sources.
///
/// Uses a process-wide atomic counter — consistent with the xAI Responses
/// provider (`aimux-providers/src/xai/responses/mod.rs`). Upstream TS uses
/// provider (`aimux-providers/src/xai/responses/responses_language_model.rs`). Upstream TS uses
/// `generateId()` for the same purpose.
fn generate_source_id() -> String {
use std::sync::atomic::{AtomicU64, Ordering};
Expand Down
90 changes: 0 additions & 90 deletions aimux-providers/src/xai/convert.rs

This file was deleted.

Loading
Loading