This commit is contained in:
2025-03-24 06:44:39 +01:00
parent 0df10f5cb3
commit 598b312140
371 changed files with 8238 additions and 9082 deletions

View File

@@ -15,9 +15,9 @@ fn main() {
}
// Get the configured client
mut client := openai.OpenAI {
name: 'groq'
api_key: key
mut client := openai.OpenAI{
name: 'groq'
api_key: key
server_url: 'https://api.groq.com/openai/v1'
}
@@ -29,9 +29,9 @@ fn main() {
res := client.chat_completion(model, openai.Messages{
messages: [
openai.Message{
role: .user
role: .user
content: 'What are the key differences between Groq and other AI inference providers?'
}
},
]
})!