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
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ struct ApiKeyIntroView: View {
}
.padding()
.textFieldStyle(.roundedBorder)
NavigationLink(destination: OptionsListView(openAIService: OpenAIServiceFactory.service(apiKey: apiKey, organizationID: localOrganizationID), options: OptionsListView.APIOption.allCases.filter({ $0 != .localChat }))) {
NavigationLink(destination: OptionsListView(openAIService: OpenAIServiceFactory.service(apiKey: apiKey, organizationID: localOrganizationID, debugEnabled: true), options: OptionsListView.APIOption.allCases.filter({ $0 != .localChat }))) {
Text("Continue")
.padding()
.padding(.horizontal, 48)
Expand Down
1 change: 0 additions & 1 deletion Sources/OpenAI/Azure/DefaultOpenAIAzureService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ final public class DefaultOpenAIAzureService: OpenAIService {
public func startStreamedChat(parameters: ChatCompletionParameters) async throws -> AsyncThrowingStream<ChatCompletionChunkObject, Error> {
var chatParameters = parameters
chatParameters.stream = true
chatParameters.streamOptions = .init(includeUsage: true)
let request = try AzureOpenAIAPI.chat(deploymentID: parameters.model).request(
apiKey: apiKey,
organizationID: nil,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import Foundation

/// [Create chat completion](https://platform.openai.com/docs/api-reference/chat/create)
/// For Azure available parameters make sure to visit [Azure API reeference](https://learn.microsoft.com/en-us/azure/ai-services/openai/reference)
public struct ChatCompletionParameters: Encodable {

/// A list of messages comprising the conversation so far. [Example Python code](https://cookbook.openai.com/examples/how_to_format_inputs_to_chatgpt_models)
Expand Down