mirror of
https://github.com/CJackHwang/ds2api.git
synced 2026-05-13 20:57:41 +08:00
refactor backend API structure
This commit is contained in:
8
internal/httpapi/openai/shared/string_helpers.go
Normal file
8
internal/httpapi/openai/shared/string_helpers.go
Normal file
@@ -0,0 +1,8 @@
|
||||
package shared
|
||||
|
||||
func AsString(v any) string {
|
||||
if s, ok := v.(string); ok {
|
||||
return s
|
||||
}
|
||||
return ""
|
||||
}
|
||||
Reference in New Issue
Block a user