nsmcp::ChatCompletionsBackend method init (protected)

 <instance of nsmcp::ChatCompletionsBackend[i]> init

Defined in /usr/local/ns/tcl/nsmcp/question-chat-completions.tcl

Testcases:
No testcase defined.
Source code:
if {${:streamStore} eq ""} {set :streamStore nsmcp:question-http:[ns_info server]}
# ns_eval may construct backend copies in several interpreters. Every
# copy draining/appending the same NSV stream must use the same lock.
if {![nsv_exists nsmcp:question-http-locks ${:streamStore}]
    || ![nsv_get nsmcp:question-http-locks ${:streamStore} :mutex]} {
    set :mutex [nsv_set -default nsmcp:question-http-locks ${:streamStore} [ns_mutex create]]
}
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: