implement groq example using openai client

This commit is contained in:
Timur Gordon
2025-03-14 23:07:13 +01:00
parent 02e4ea180d
commit ef922d162e
7 changed files with 130 additions and 15 deletions

View File

@@ -11,7 +11,7 @@ msg << op.Message{
mut msgs := op.Messages{
messages: msg
}
res := ai_cli.chat_completion(op.ModelType.gpt_3_5_turbo, msgs)!
res := ai_cli.chat_completion(op.ModelType.gpt_3_5_turbo.str(), msgs)!
print(res)
models := ai_cli.list_models()!