...
This commit is contained in:
@@ -86,8 +86,11 @@ pub fn (mut f OpenAI) chat_completion(args_ CompletionArgs) !ChatCompletion {
|
||||
data := json.encode(m)
|
||||
// println('data: ${data}')
|
||||
mut conn := f.connection()!
|
||||
println(f)
|
||||
r := conn.post_json_str(prefix: 'chat/completions', data: data)!
|
||||
// println('res: ${r}')
|
||||
println('res: ${r}')
|
||||
if true{panic("TO DEBUG, SOMETHING IS NOT RIGHT IN LINE WITH AUTHENTICATION")}
|
||||
|
||||
|
||||
res := json.decode(ChatCompletionRaw, r)!
|
||||
|
||||
|
||||
Reference in New Issue
Block a user