You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CLAUDE.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,14 +4,14 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
4
4
5
5
## Project Overview
6
6
7
-
OpenGradient Python SDK - A decentralized model management and inference platform SDK. The SDK enables programmatic access to model repositories and decentralized AI infrastructure, including end-to-end verified AI execution. Use virtualenv for dependency management locally (in `venv` folder).
7
+
OpenGradient Python SDK - A decentralized model management and inference platform SDK. The SDK enables programmatic access to model repositories and decentralized AI infrastructure, including end-to-end verified AI execution. Uses `uv` for dependency management.
8
8
9
9
## Development Commands
10
10
11
11
### Build & Installation
12
12
```bash
13
-
# Install in development mode
14
-
pip install -e .
13
+
# Install dependencies (syncs from pyproject.toml/uv.lock)
--messages '[{"role":"user","content":"Tell me a fun fact"}]'\
67
67
--max-tokens 350
68
68
69
69
chat-stream:
70
-
python -m opengradient.cli chat \
70
+
uv run python -m opengradient.cli chat \
71
71
--model $(MODEL)\
72
72
--messages '[{"role":"user","content":"Tell me a short story"}]'\
73
73
--max-tokens 1250 \
74
74
--stream
75
75
76
76
chat-tool:
77
-
python -m opengradient.cli chat \
77
+
uv run python -m opengradient.cli chat \
78
78
--model $(MODEL)\
79
79
--messages '[{"role":"system","content":"You are a helpful assistant. Use tools when needed."},{"role":"user","content":"What'\''s the weather like in Dallas, Texas? Give me the temperature in fahrenheit."}]'\
80
80
--tools '[{"type":"function","function":{"name":"get_current_weather","description":"Get the current weather in a given location","parameters":{"type":"object","properties":{"city":{"type":"string"},"state":{"type":"string"},"unit":{"type":"string","enum":["fahrenheit","celsius"]}},"required":["city","state","unit"]}}}]'\
81
81
--max-tokens 200
82
82
83
83
chat-stream-tool:
84
-
python -m opengradient.cli chat \
84
+
uv run python -m opengradient.cli chat \
85
85
--model $(MODEL)\
86
86
--messages '[{"role":"system","content":"You are a helpful assistant. Use tools when needed."},{"role":"user","content":"What'\''s the weather like in Dallas, Texas? Give me the temperature in fahrenheit."}]'\
87
87
--tools '[{"type":"function","function":{"name":"get_current_weather","description":"Get the current weather in a given location","parameters":{"type":"object","properties":{"city":{"type":"string"},"state":{"type":"string"},"unit":{"type":"string","enum":["fahrenheit","celsius"]}},"required":["city","state","unit"]}}}]'\
0 commit comments