Skip to content

Commit

Permalink
use ollama's openai compatible api
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanborror committed Oct 10, 2024
1 parent 425d222 commit 515c072
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/GenKit/Types/Service.swift
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ extension Service {
MistralService(configuration: .init(host: hostURL, token: token))
}

public func ollama() -> OllamaService {
OllamaService(configuration: .init(host: hostURL))
public func ollama() -> OpenAIService {
OpenAIService(configuration: .init(host: hostURL, token: token))
}

public func openAI() -> OpenAIService {
Expand Down

0 comments on commit 515c072

Please sign in to comment.