This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /// script | |
# requires-python = ">=3.7,<=3.11" | |
# dependencies = [ | |
# "langchain-groq >= 0.3.4", | |
# "scrapegraphai >= 1.57.0", | |
# ] | |
# /// | |
""" | |
Simple recon script using scrapegraphai with Groq | |
""" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /// script | |
# requires-python = ">=3.7,<=3.11" | |
# dependencies = [ | |
# "azure-identity >= 1.2.1", | |
# "openai >= 1.65.2", | |
# ] | |
# /// | |
""" | |
Quick 'n' dirty 'Ahoy!' demo with Azure OpenAI |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% This Prolog program is just a glorified database. | |
% | |
% "You use glorified to indicate that something is less important | |
% or impressive than its name actually suggests." (Collins Dictionary) | |
% | |
% @author João Galego | |
% | |
% Facts (according to the Internet) | |
glorified('Docker Image', tarball). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Dependencies: | |
# + jq (https://jqlang.org/) | |
# + consolemd (https://github.com/kneufeld/consolemd) | |
curl -s "https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash:generateContent?key=$GEMINI_API_KEY" \ | |
-H 'Content-Type: application/json' \ | |
-X POST \ | |
-d '{ | |
"contents": [{ | |
"parts":[{"text": "Explain how AI works"}] | |
}] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /// script | |
# requires-python = ">=3.7,<=3.11" | |
# dependencies = [ | |
# "giskard[llm] >= 2.16.1", | |
# "langchain >= 0.3.19", | |
# "langchain-community >= 0.3.18", | |
# "langchain-openai >= 0.3.1", | |
# "openai >= 1.65.2", | |
# "pandas >= 2.2.3", | |
# "pypdf <= 3.17.0" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /// script | |
# requires-python = ">=3.12" | |
# dependencies = [ | |
# "smolagents[litellm] >= 1.9.2", | |
# ] | |
# /// | |
""" | |
smolagents meets Groq via LiteLLM 🚅 | |
Adapted from https://github.com/huggingface/smolagents/issues/429 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
DeepSeek with Groq | |
https://console.groq.com/docs/model/deepseek-r1-distill-llama-70b | |
""" | |
from groq import Groq | |
client = Groq() | |
completion = client.chat.completions.create( |
NewerOlder