File size: 496 Bytes
74e3b79 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
/*
* @Author: Vincent Yang
* @Date: 2024-04-18 03:50:36
* @LastEditors: Vincent Yang
* @LastEditTime: 2024-04-18 03:50:56
* @FilePath: /cohere2openai/utils.go
* @Telegram: https://t.me/missuo
* @GitHub: https://github.com/missuo
*
* Copyright © 2024 by Vincent, All Rights Reserved.
*/
package main
func isInSlice(str string, list []string) bool {
for _, item := range list {
if item == str {
return true
}
}
return false
}
func stringPtr(s string) *string {
return &s
}
|