Skip to content

Commit

Permalink
Fixing sending version
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesrochabrun committed Jan 23, 2025
1 parent e44cbdb commit c4cf758
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ struct LocalChatDemoView: View {
messages: [.init(
role: .user,
content: content)],
// Make sure you run `ollama pull llama3` in your terminal to download this model.
model: .custom("llama3"))
// Make sure you run `ollama pull llama3.1` in your terminal to download this model.
model: .custom("llama3.1"))
switch selectedSegment {
case .chatCompletion:
try await chatProvider.startChat(parameters: parameters)
Expand Down
2 changes: 1 addition & 1 deletion Sources/OpenAI/LocalModelService/LocalModelService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ struct LocalModelService: OpenAIService {
self.session = URLSession(configuration: configuration)
self.decoder = decoder
self.apiKey = apiKey
self.openAIEnvironment = OpenAIEnvironment(baseURL: baseURL, proxyPath: proxyPath, version: overrideVersion)
self.openAIEnvironment = OpenAIEnvironment(baseURL: baseURL, proxyPath: proxyPath, version: overrideVersion ?? "v1")
self.debugEnabled = debugEnabled
}

Expand Down

0 comments on commit c4cf758

Please sign in to comment.