Skip to content

Commit

Permalink
Merge pull request #3 from nishant-sethi/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
nishant-sethi authored Mar 18, 2024
2 parents 2ee75b5 + b3a1f81 commit 6a5749d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Binary file not shown.
2 changes: 1 addition & 1 deletion ChatUI/Modules/Chat/HistoryViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class HistoryViewModel: ObservableObject {
}

func getContextFromConversation(_ messages: [Message], _ historyId: UUID?) async {
let urlString = "https://abae-165-225-196-145.ngrok-free.app/get-context"
let urlString = "https://calm-coast-87343-200918e427ac.herokuapp.com/get-context"
let messagesList = messages.map { $0.content }.joined(separator: ",")
let requestBody: [String: Any] = [
"user_messages": messagesList
Expand Down
5 changes: 2 additions & 3 deletions ChatUI/Modules/Chat/PromptViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
//

import SwiftUI
import OpenAISwift

class PromptViewModel: ObservableObject {

Expand All @@ -31,7 +30,7 @@ class PromptViewModel: ObservableObject {
return
}
/// set api url
let urlString = "https://cbe2-82-25-49-180.ngrok-free.app/set-api-key"
let urlString = "https://calm-coast-87343-200918e427ac.herokuapp.com/set-api-key"
guard let url = URL(string: urlString) else {
return
}
Expand Down Expand Up @@ -71,7 +70,7 @@ class PromptViewModel: ObservableObject {


//set api url
let urlString = "https://abae-165-225-196-145.ngrok-free.app/ask-gpt4"
let urlString = "https://calm-coast-87343-200918e427ac.herokuapp.com/ask-gpt4"
guard let url = URL(string: urlString) else {
self.isFetching = false
return
Expand Down

0 comments on commit 6a5749d

Please sign in to comment.