This commit is contained in:
2025-08-06 12:36:09 +02:00
parent d56a04e3ea
commit d4df226381
4 changed files with 10 additions and 3 deletions

View File

@@ -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)!