diff --git a/sdk/openai/inference/examples/azure_chat_completions.rs b/sdk/openai/inference/examples/azure_chat_completions.rs index f4561e1370..1e0da9b73a 100644 --- a/sdk/openai/inference/examples/azure_chat_completions.rs +++ b/sdk/openai/inference/examples/azure_chat_completions.rs @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. use azure_openai_inference::{ clients::{AzureOpenAIClient, AzureOpenAIClientMethods, ChatCompletionsClientMethods}, AzureOpenAIClientOptions, AzureServiceVersion, CreateChatCompletionsRequest, diff --git a/sdk/openai/inference/examples/azure_chat_completions_aad.rs b/sdk/openai/inference/examples/azure_chat_completions_aad.rs index d9558e6196..9afab7c0af 100644 --- a/sdk/openai/inference/examples/azure_chat_completions_aad.rs +++ b/sdk/openai/inference/examples/azure_chat_completions_aad.rs @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. use std::sync::Arc; use azure_identity::DefaultAzureCredentialBuilder; diff --git a/sdk/openai/inference/examples/azure_chat_completions_stream.rs b/sdk/openai/inference/examples/azure_chat_completions_stream.rs index ca5bb5f229..aaa2f24797 100644 --- a/sdk/openai/inference/examples/azure_chat_completions_stream.rs +++ b/sdk/openai/inference/examples/azure_chat_completions_stream.rs @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. use azure_openai_inference::{ clients::{AzureOpenAIClient, AzureOpenAIClientMethods, ChatCompletionsClientMethods}, AzureOpenAIClientOptions, AzureServiceVersion, CreateChatCompletionsRequest, diff --git a/sdk/openai/inference/examples/chat_completions.rs b/sdk/openai/inference/examples/chat_completions.rs index 589e97c296..a5e6fe8261 100644 --- a/sdk/openai/inference/examples/chat_completions.rs +++ b/sdk/openai/inference/examples/chat_completions.rs @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. use azure_openai_inference::{ clients::{ChatCompletionsClientMethods, OpenAIClient, OpenAIClientMethods}, CreateChatCompletionsRequest, diff --git a/sdk/openai/inference/examples/chat_completions_stream.rs b/sdk/openai/inference/examples/chat_completions_stream.rs index b925049be5..d7ffc6488b 100644 --- a/sdk/openai/inference/examples/chat_completions_stream.rs +++ b/sdk/openai/inference/examples/chat_completions_stream.rs @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. use azure_openai_inference::{ clients::{ChatCompletionsClientMethods, OpenAIClient, OpenAIClientMethods}, CreateChatCompletionsRequest, diff --git a/sdk/openai/inference/src/clients/azure_openai_client.rs b/sdk/openai/inference/src/clients/azure_openai_client.rs index 3e6e1568a0..6655677e99 100644 --- a/sdk/openai/inference/src/clients/azure_openai_client.rs +++ b/sdk/openai/inference/src/clients/azure_openai_client.rs @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. use std::sync::Arc; use crate::credentials::{AzureKeyCredential, DEFAULT_SCOPE}; diff --git a/sdk/openai/inference/src/clients/chat_completions_client.rs b/sdk/openai/inference/src/clients/chat_completions_client.rs index d3ed88e177..9d2016c267 100644 --- a/sdk/openai/inference/src/clients/chat_completions_client.rs +++ b/sdk/openai/inference/src/clients/chat_completions_client.rs @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. use super::{new_json_request, BaseOpenAIClientMethods}; use crate::{ helpers::streaming::{string_chunks, EventStreamer}, diff --git a/sdk/openai/inference/src/clients/mod.rs b/sdk/openai/inference/src/clients/mod.rs index fbb8bd1331..85699ada28 100644 --- a/sdk/openai/inference/src/clients/mod.rs +++ b/sdk/openai/inference/src/clients/mod.rs @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. mod azure_openai_client; mod chat_completions_client; mod openai_client; diff --git a/sdk/openai/inference/src/clients/openai_client.rs b/sdk/openai/inference/src/clients/openai_client.rs index cf3a51d02f..a8cad42bb1 100644 --- a/sdk/openai/inference/src/clients/openai_client.rs +++ b/sdk/openai/inference/src/clients/openai_client.rs @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. use std::sync::Arc; use azure_core::{Policy, Result, Url}; diff --git a/sdk/openai/inference/src/credentials/azure_key_credential.rs b/sdk/openai/inference/src/credentials/azure_key_credential.rs index b7c2d18e76..0593c9cbbe 100644 --- a/sdk/openai/inference/src/credentials/azure_key_credential.rs +++ b/sdk/openai/inference/src/credentials/azure_key_credential.rs @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. use async_trait::async_trait; use std::sync::Arc; diff --git a/sdk/openai/inference/src/credentials/mod.rs b/sdk/openai/inference/src/credentials/mod.rs index 11b63877da..5b81a8355c 100644 --- a/sdk/openai/inference/src/credentials/mod.rs +++ b/sdk/openai/inference/src/credentials/mod.rs @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. mod azure_key_credential; mod openai_key_credential; diff --git a/sdk/openai/inference/src/credentials/openai_key_credential.rs b/sdk/openai/inference/src/credentials/openai_key_credential.rs index a543214d91..a95cb90eba 100644 --- a/sdk/openai/inference/src/credentials/openai_key_credential.rs +++ b/sdk/openai/inference/src/credentials/openai_key_credential.rs @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. use async_trait::async_trait; use std::sync::Arc; diff --git a/sdk/openai/inference/src/helpers/mod.rs b/sdk/openai/inference/src/helpers/mod.rs index c65f3f1305..2d0184ea05 100644 --- a/sdk/openai/inference/src/helpers/mod.rs +++ b/sdk/openai/inference/src/helpers/mod.rs @@ -1 +1,3 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. pub(crate) mod streaming; diff --git a/sdk/openai/inference/src/helpers/streaming.rs b/sdk/openai/inference/src/helpers/streaming.rs index 95ef9b4a3d..286aced5ab 100644 --- a/sdk/openai/inference/src/helpers/streaming.rs +++ b/sdk/openai/inference/src/helpers/streaming.rs @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. use azure_core::{Error, Result}; use futures::{Stream, StreamExt}; diff --git a/sdk/openai/inference/src/lib.rs b/sdk/openai/inference/src/lib.rs index 0587fac590..dceeb85b4d 100644 --- a/sdk/openai/inference/src/lib.rs +++ b/sdk/openai/inference/src/lib.rs @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. pub mod clients; mod credentials; mod helpers; diff --git a/sdk/openai/inference/src/models/chat_completions.rs b/sdk/openai/inference/src/models/chat_completions.rs index d5a2c49c29..3f7e439ba9 100644 --- a/sdk/openai/inference/src/models/chat_completions.rs +++ b/sdk/openai/inference/src/models/chat_completions.rs @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. pub mod request { use serde::Serialize; diff --git a/sdk/openai/inference/src/models/mod.rs b/sdk/openai/inference/src/models/mod.rs index 8ccec0e32c..67a1b7a918 100644 --- a/sdk/openai/inference/src/models/mod.rs +++ b/sdk/openai/inference/src/models/mod.rs @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. mod chat_completions; pub use chat_completions::*; diff --git a/sdk/openai/inference/src/options/azure_openai_client_options.rs b/sdk/openai/inference/src/options/azure_openai_client_options.rs index 438f2d0543..bcdbef9047 100644 --- a/sdk/openai/inference/src/options/azure_openai_client_options.rs +++ b/sdk/openai/inference/src/options/azure_openai_client_options.rs @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. use azure_core::ClientOptions; use crate::AzureServiceVersion; diff --git a/sdk/openai/inference/src/options/mod.rs b/sdk/openai/inference/src/options/mod.rs index bc1cf1eb13..a66a5734dd 100644 --- a/sdk/openai/inference/src/options/mod.rs +++ b/sdk/openai/inference/src/options/mod.rs @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. mod azure_openai_client_options; mod openai_client_options; mod service_version; diff --git a/sdk/openai/inference/src/options/openai_client_options.rs b/sdk/openai/inference/src/options/openai_client_options.rs index 96f99e9355..b428727dae 100644 --- a/sdk/openai/inference/src/options/openai_client_options.rs +++ b/sdk/openai/inference/src/options/openai_client_options.rs @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. use azure_core::ClientOptions; /// Options to be passed to [`OpenAIClient`](crate::clients::OpenAIClient). diff --git a/sdk/openai/inference/src/options/service_version.rs b/sdk/openai/inference/src/options/service_version.rs index c68d7b8e7f..8cfb335b80 100644 --- a/sdk/openai/inference/src/options/service_version.rs +++ b/sdk/openai/inference/src/options/service_version.rs @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. use async_trait::async_trait; use std::sync::Arc;