diff --git a/examples/llm/localai/main.go b/examples/llm/localai/main.go index 6d4c761c..92c09831 100644 --- a/examples/llm/localai/main.go +++ b/examples/llm/localai/main.go @@ -10,7 +10,7 @@ import ( ) func main() { - customConfig := goopenai.DefaultConfig("") + customConfig := goopenai.DefaultConfig("YOUR_API_KEY") customConfig.BaseURL = "http://localhost:8080" customClient := goopenai.NewClientWithConfig(customConfig)