Skip to content

Instantly share code, notes, and snippets.

View rkorszun's full-sized avatar

Rafal Korszun rkorszun

View GitHub Profile
@rkorszun
rkorszun / main.py
Created February 15, 2025 22:46
Example of using deepseek (ollama - local) with some external API using json_schema
from pydantic import BaseModel, Field
from datetime import date
import ollama
import requests
import json
import pandas as pd
class Query(BaseModel):
"""Data that we want collect from user to get weather data"""