2
0
Эх сурвалжийг харах

Apply suggestions from code review

Co-authored-by: Bruce MacDonald <brucewmacdonald@gmail.com>
Parth Sareen 7 сар өмнө
parent
commit
0bb270d766

+ 1 - 3
examples/tools/calculator.ts

@@ -1,6 +1,4 @@
-import { Ollama } from '../../src/index.js';
-
-const ollama = new Ollama();
+import ollama from 'ollama';
 
 // Add two numbers function
 function addTwoNumbers(args: { a: number, b: number }): number {

+ 0 - 1
examples/tools/flight-tracker.ts

@@ -1,6 +1,5 @@
 import ollama from 'ollama';
 
-
 // Simulates an API call to get flight times
 // In a real application, this would fetch data from a live database or API
 function getFlightTimes(args: { [key: string]: any }) {