Unverified Commit b6a3b0c6 authored by ishandhanani's avatar ishandhanani Committed by GitHub
Browse files

refactor(2/3): rename dynamo-async-openai to dynamo-protocols (#7565)

parent c84c0934
......@@ -12,11 +12,11 @@
//! The purpose of this test to make sure that all _byot methods compiles with custom types.
use std::pin::Pin;
use dynamo_async_openai::{Client, error::OpenAIError};
use dynamo_protocols::{Client, error::OpenAIError};
use futures::Stream;
use serde_json::{Value, json};
impl dynamo_async_openai::traits::AsyncTryFrom<MyJson> for reqwest::multipart::Form {
impl dynamo_protocols::traits::AsyncTryFrom<MyJson> for reqwest::multipart::Form {
type Error = OpenAIError;
async fn try_from(_value: MyJson) -> Result<Self, Self::Error> {
Ok(reqwest::multipart::Form::new())
......
......@@ -9,7 +9,7 @@
// Licensed under Apache 2.0
//! This test is primarily to make sure that macros_rules for From traits are correct.
use dynamo_async_openai::types::Prompt;
use dynamo_protocols::types::Prompt;
fn prompt_input<T>(input: T) -> Prompt
where
......
......@@ -9,7 +9,7 @@
// Licensed under Apache 2.0
//! This test is primarily to make sure that macros_rules for From traits are correct.
use dynamo_async_openai::types::EmbeddingInput;
use dynamo_protocols::types::EmbeddingInput;
fn embedding_input<T>(input: T) -> EmbeddingInput
where
......
......@@ -8,7 +8,7 @@
// Modifications Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES.
// Licensed under Apache 2.0
use dynamo_async_openai::types::{
use dynamo_protocols::types::{
ChatCompletionRequestSystemMessageArgs, ChatCompletionRequestUserMessageArgs,
CreateChatCompletionRequest, CreateChatCompletionRequestArgs,
};
......
......@@ -8,8 +8,8 @@
// Modifications Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES.
// Licensed under Apache 2.0
use dynamo_async_openai::types::CreateTranslationRequestArgs;
use dynamo_async_openai::{Client, types::CreateTranscriptionRequestArgs};
use dynamo_protocols::types::CreateTranslationRequestArgs;
use dynamo_protocols::{Client, types::CreateTranscriptionRequestArgs};
use tokio_test::assert_err;
#[tokio::test]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment