Skip to content

Conversation

@james-see
Copy link
Owner

Added comprehensive examples for modern LLM/AI development:

New Examples:

  • openai_gpt-example.py: OpenAI GPT-4/GPT-3.5 examples

    • Chat completions, streaming, function calling
    • System prompts, conversation memory, JSON mode
  • anthropic_claude-example.py: Anthropic Claude examples

    • Claude 3.5 Sonnet/Opus/Haiku integration
    • Streaming, multi-turn conversations, vision
    • Extended thinking, response prefill
  • langchain-example.py: LangChain framework examples

    • Prompt templates, chains, memory
    • Structured outputs with Pydantic
    • RAG patterns, few-shot prompting
  • instructor-example.py: Structured outputs with type safety

    • Pydantic model validation
    • Classification, sentiment analysis
    • Chain of thought, streaming outputs

Configuration:

  • .env.example: Template for API keys
  • Added dependencies: openai, anthropic, langchain, instructor, python-dotenv

Documentation:

  • Updated README with LLM/AI section
  • Usage examples and API key setup instructions
  • Links to documentation and API key resources

Closes #34

Added comprehensive examples for modern LLM/AI development:

New Examples:
- openai_gpt-example.py: OpenAI GPT-4/GPT-3.5 examples
  - Chat completions, streaming, function calling
  - System prompts, conversation memory, JSON mode

- anthropic_claude-example.py: Anthropic Claude examples
  - Claude 3.5 Sonnet/Opus/Haiku integration
  - Streaming, multi-turn conversations, vision
  - Extended thinking, response prefill

- langchain-example.py: LangChain framework examples
  - Prompt templates, chains, memory
  - Structured outputs with Pydantic
  - RAG patterns, few-shot prompting

- instructor-example.py: Structured outputs with type safety
  - Pydantic model validation
  - Classification, sentiment analysis
  - Chain of thought, streaming outputs

Configuration:
- .env.example: Template for API keys
- Added dependencies: openai, anthropic, langchain, instructor, python-dotenv

Documentation:
- Updated README with LLM/AI section
- Usage examples and API key setup instructions
- Links to documentation and API key resources

Closes #34
)

print(f"Company: {company.name}")
print(f"Employees: {company.employees:,}")

Check failure

Code scanning / CodeQL

Clear-text logging of sensitive information High

This expression logs
sensitive data (private)
as clear text.

Copilot Autofix

AI 29 days ago

Copilot could not generate an autofix suggestion

Copilot could not generate an autofix suggestion for this alert. Try pushing a new commit or if the problem persists contact support.

@james-see james-see merged commit e519d39 into master Dec 27, 2025
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add LLM and AI workflow examples section

3 participants