Skip to content

Commit

Permalink
Added license header to source files
Browse files Browse the repository at this point in the history
  • Loading branch information
jpalvarezl committed Sep 30, 2024
1 parent 984645b commit a82e472
Show file tree
Hide file tree
Showing 21 changed files with 42 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sdk/openai/inference/examples/azure_chat_completions.rs
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
2 changes: 2 additions & 0 deletions sdk/openai/inference/examples/azure_chat_completions_aad.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
use std::sync::Arc;

use azure_identity::DefaultAzureCredentialBuilder;
Expand Down
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
2 changes: 2 additions & 0 deletions sdk/openai/inference/examples/chat_completions.rs
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
2 changes: 2 additions & 0 deletions sdk/openai/inference/examples/chat_completions_stream.rs
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
2 changes: 2 additions & 0 deletions sdk/openai/inference/src/clients/azure_openai_client.rs
Original file line number Diff line number Diff line change
@@ -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};
Expand Down
2 changes: 2 additions & 0 deletions sdk/openai/inference/src/clients/chat_completions_client.rs
Original file line number Diff line number Diff line change
@@ -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},
Expand Down
2 changes: 2 additions & 0 deletions sdk/openai/inference/src/clients/mod.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
2 changes: 2 additions & 0 deletions sdk/openai/inference/src/clients/openai_client.rs
Original file line number Diff line number Diff line change
@@ -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};
Expand Down
2 changes: 2 additions & 0 deletions sdk/openai/inference/src/credentials/azure_key_credential.rs
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
2 changes: 2 additions & 0 deletions sdk/openai/inference/src/credentials/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
mod azure_key_credential;
mod openai_key_credential;

Expand Down
2 changes: 2 additions & 0 deletions sdk/openai/inference/src/credentials/openai_key_credential.rs
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
2 changes: 2 additions & 0 deletions sdk/openai/inference/src/helpers/mod.rs
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
pub(crate) mod streaming;
2 changes: 2 additions & 0 deletions sdk/openai/inference/src/helpers/streaming.rs
Original file line number Diff line number Diff line change
@@ -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};

Expand Down
2 changes: 2 additions & 0 deletions sdk/openai/inference/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
pub mod clients;
mod credentials;
mod helpers;
Expand Down
2 changes: 2 additions & 0 deletions sdk/openai/inference/src/models/chat_completions.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
pub mod request {

use serde::Serialize;
Expand Down
2 changes: 2 additions & 0 deletions sdk/openai/inference/src/models/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
mod chat_completions;

pub use chat_completions::*;
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
use azure_core::ClientOptions;

use crate::AzureServiceVersion;
Expand Down
2 changes: 2 additions & 0 deletions sdk/openai/inference/src/options/mod.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
2 changes: 2 additions & 0 deletions sdk/openai/inference/src/options/openai_client_options.rs
Original file line number Diff line number Diff line change
@@ -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).
Expand Down
2 changes: 2 additions & 0 deletions sdk/openai/inference/src/options/service_version.rs
Original file line number Diff line number Diff line change
@@ -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;

Expand Down

0 comments on commit a82e472

Please sign in to comment.