You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 6, 2025. It is now read-only.
server/serve.go relies on an unexported global variable called neuralNetworks which is set when running server.Serve however it exposes public functions like Reply and Train.
The inability to set neuralNetworks unless calling server.Serve negates the purpose of having public accessible functions like Reply and Train as these can't be used, unless you call server.Serve.
neuralNetworks should either be a publicly settable and gettable variable, or all public functions like Reply and Train should not be public, as they wont work unless you call server.Serve.
This means that its not possible to use the olivia server in third-party packages or repositories, even though it is written in such a way that it can be used by third party packages or repositories.
The text was updated successfully, but these errors were encountered:
Ah okay understandable. Is there any kind of limitation that would prevent it from being used as a library? It definitely is a one of a kind golang project, and in theory would allow people to build some cool stuff being used as a library.
server/serve.go
relies on an unexported global variable calledneuralNetworks
which is set when runningserver.Serve
however it exposes public functions likeReply
andTrain
.The inability to set
neuralNetworks
unless callingserver.Serve
negates the purpose of having public accessible functions likeReply
andTrain
as these can't be used, unless you callserver.Serve
.neuralNetworks
should either be a publicly settable and gettable variable, or all public functions likeReply
andTrain
should not be public, as they wont work unless you callserver.Serve
.This means that its not possible to use the olivia server in third-party packages or repositories, even though it is written in such a way that it can be used by third party packages or repositories.
The text was updated successfully, but these errors were encountered: