File tree Expand file tree Collapse file tree 1 file changed +57
-0
lines changed Expand file tree Collapse file tree 1 file changed +57
-0
lines changed Original file line number Diff line number Diff line change 1+ {
2+ "cells" : [
3+ {
4+ "cell_type" : " markdown" ,
5+ "metadata" : {},
6+ "source" : [
7+ " This example uses Codestral via ollama"
8+ ]
9+ },
10+ {
11+ "cell_type" : " code" ,
12+ "execution_count" : null ,
13+ "metadata" : {},
14+ "outputs" : [],
15+ "source" : [
16+ " !ollama run codestral"
17+ ]
18+ },
19+ {
20+ "cell_type" : " code" ,
21+ "execution_count" : null ,
22+ "metadata" : {},
23+ "outputs" : [],
24+ "source" : [
25+ " !pip install interpreter"
26+ ]
27+ },
28+ {
29+ "cell_type" : " code" ,
30+ "execution_count" : null ,
31+ "metadata" : {},
32+ "outputs" : [],
33+ "source" : [
34+ " from interpreter import interpreter\n " ,
35+ " \n " ,
36+ " interpreter.offline = True\n " ,
37+ " interpreter.llm.model = \" ollama/codestral\"\n " ,
38+ " interpreter.llm.api_base = \" http://localhost:11434\"\n " ,
39+ " interpreter.llm.context_window = 32000\n " ,
40+ " interpreter.llm.max_tokens = 8000\n " ,
41+ " interpreter.auto_run = True\n " ,
42+ " \n " ,
43+ " def run(prompt):\n " ,
44+ " interpreter.chat(prompt)\n " ,
45+ " \n " ,
46+ " run(\" how many files are on my desktop?\" )"
47+ ]
48+ }
49+ ],
50+ "metadata" : {
51+ "language_info" : {
52+ "name" : " python"
53+ }
54+ },
55+ "nbformat" : 4 ,
56+ "nbformat_minor" : 2
57+ }
You can’t perform that action at this time.
0 commit comments