Skip to content

Commit

Permalink
request module flattening fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jpalvarezl committed Sep 30, 2024
1 parent 495d844 commit 68562ac
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 9 deletions.
3 changes: 1 addition & 2 deletions sdk/openai/inference/examples/azure_chat_completions.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use azure_openai_inference::{
clients::{AzureOpenAIClient, AzureOpenAIClientMethods, ChatCompletionsClientMethods},
request::CreateChatCompletionsRequest,
AzureOpenAIClientOptions, AzureServiceVersion,
AzureOpenAIClientOptions, AzureServiceVersion, CreateChatCompletionsRequest,
};

// This example illustrates how to use Azure OpenAI with key credential authentication to generate a chat completion.
Expand Down
3 changes: 1 addition & 2 deletions sdk/openai/inference/examples/azure_chat_completions_aad.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ use std::sync::Arc;
use azure_identity::DefaultAzureCredentialBuilder;
use azure_openai_inference::{
clients::{AzureOpenAIClient, AzureOpenAIClientMethods, ChatCompletionsClientMethods},
request::CreateChatCompletionsRequest,
AzureOpenAIClientOptions, AzureServiceVersion,
AzureOpenAIClientOptions, AzureServiceVersion, CreateChatCompletionsRequest,
};

/// This example illustrates how to use Azure OpenAI Chat Completions with Azure Active Directory authentication.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use azure_openai_inference::{
clients::{AzureOpenAIClient, AzureOpenAIClientMethods, ChatCompletionsClientMethods},
request::CreateChatCompletionsRequest,
AzureOpenAIClientOptions, AzureServiceVersion,
AzureOpenAIClientOptions, AzureServiceVersion, CreateChatCompletionsRequest,
};
use futures::stream::StreamExt;
use std::io::{self, Write};
Expand Down
2 changes: 1 addition & 1 deletion sdk/openai/inference/examples/chat_completions.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use azure_openai_inference::{
clients::{ChatCompletionsClientMethods, OpenAIClient, OpenAIClientMethods},
request::CreateChatCompletionsRequest,
CreateChatCompletionsRequest,
};

/// This example illustrates how to use OpenAI to generate a chat completion.
Expand Down
2 changes: 1 addition & 1 deletion sdk/openai/inference/examples/chat_completions_stream.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use azure_openai_inference::{
clients::{ChatCompletionsClientMethods, OpenAIClient, OpenAIClientMethods},
request::CreateChatCompletionsRequest,
CreateChatCompletionsRequest,
};
use futures::stream::StreamExt;
use std::io::{self, Write};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use super::{new_json_request, BaseOpenAIClientMethods};
use crate::{
helpers::streaming::{string_chunks, EventStreamer},
request::CreateChatCompletionsRequest,
response::{CreateChatCompletionsResponse, CreateChatCompletionsStreamResponse},
CreateChatCompletionsRequest,
};
use azure_core::{Context, Method, Response, Result};
use futures::{Stream, StreamExt};
Expand Down

0 comments on commit 68562ac

Please sign in to comment.