mirror of
https://github.com/ollama/ollama-python.git
synced 2026-07-21 09:05:23 -04:00
ollama.generate和ollama.chat的区别是什么? #2
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @haomes on GitHub (Jan 23, 2024).
@MostlyKIGuess commented on GitHub (Jan 24, 2024):
What's the issue btw?
@mxyng commented on GitHub (Jan 25, 2024):
ollama.generatecalls ollama's generate endpoint which is intended for text or code completion but can also be used for chat. it takesprompt,template, andsystemas its main input fields.ollama.chatcalls ollama's chat endpoint which is specialized for chat interactions. it takesmessagesas its main input field