feat: support cohere (close #195)
This commit is contained in:
1 parent
213e659164
commit
cae9dbe141
11 files changed
+322
-2
No files matched your search
@@ -43,6 +43,10 @@ type OpenAIFunction struct {
|
||||
Parameters any `json:"parameters,omitempty"`
|
||||
}
|
||||
|
||||
func (r GeneralOpenAIRequest) GetMaxTokens() int64 {
|
||||
return int64(r.MaxTokens)
|
||||
}
|
||||
|
||||
func (r GeneralOpenAIRequest) ParseInput() []string {
|
||||
if r.Input == nil {
|
||||
return nil
|
||||
|
||||
Reference in new issue
Block a user