to:sync
This commit is contained in:
parent
342fbf9a61
commit
057d853f06
@ -49,7 +49,7 @@ func InitAiGroup(g *echo.Group) {
|
|||||||
return c.JSON(500, err)
|
return c.JSON(500, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
result, err := remote_http.AiOllama.Completions(context.Background(), req.Prompt, "")
|
result, err := remote_http.AiOpenRouter.Completions(context.Background(), req.Prompt, "")
|
||||||
if err != nil || result == nil {
|
if err != nil || result == nil {
|
||||||
return c.JSON(http.StatusOK, utils.Failed(err.Error()))
|
return c.JSON(http.StatusOK, utils.Failed(err.Error()))
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user