Explorar o código

remove chat and generate examples

Bruce MacDonald hai 1 ano
pai
achega
32f32da4d2
Modificáronse 2 ficheiros con 0 adicións e 20 borrados
  1. 0 9
      examples/chat/chat.ts
  2. 0 11
      examples/generate/generate.ts

+ 0 - 9
examples/chat/chat.ts

@@ -1,9 +0,0 @@
-import ollama, { Message } from 'ollama'
-
-async function main(): Promise<void> {
-  const messages: Message[] = [{ role: 'user', content: 'Why is the sky blue?' }]
-  const response = await ollama.chat({ model: 'mistral', messages })
-  console.log(response.message.content)
-}
-
-await main()

+ 0 - 11
examples/generate/generate.ts

@@ -1,11 +0,0 @@
-import ollama from 'ollama'
-
-async function main(): Promise<void> {
-  const respose = await ollama.generate({
-    model: 'mistral',
-    prompt: 'Why is the sky blue?',
-  })
-  console.log(respose.response)
-}
-
-await main()