blob: 24017f2dd2f74bdce5501f21068f86dd08ec5498 [file] [log] [blame]
iomodo75542322025-07-30 19:27:48 +04001package provider
2
3import (
4 "github.com/iomodo/staff/llm"
5 "github.com/iomodo/staff/llm/fake"
6 "github.com/iomodo/staff/llm/openai"
7)
8
9func CreateProvider(config llm.Config) llm.LLMProvider {
10 switch config.Provider {
11 case llm.ProviderFake:
12 return fake.New()
13 case llm.ProviderOpenAI:
14 return openai.New(config)
15 default:
16 return fake.New()
17 }
18
19}