mirror of
https://github.com/go-micro/go-micro.git
synced 2025-08-10 21:52:01 +02:00
add string function
This commit is contained in:
@@ -146,6 +146,10 @@ func (o *openAI) Stream(prompt string, opts ...genai.Option) (*genai.Stream, err
|
||||
return &genai.Stream{Results: results}, nil
|
||||
}
|
||||
|
||||
func (o *openAI) String() string {
|
||||
return "openai"
|
||||
}
|
||||
|
||||
func init() {
|
||||
genai.Register("openai", New())
|
||||
}
|
||||
|
Reference in New Issue
Block a user