ollama-js icon indicating copy to clipboard operation
ollama-js copied to clipboard

Ollama JavaScript library

Results 26 ollama-js issues
Sort by recently updated
recently updated
newest added

I have a consistent error when creating a new model based on my local gguf file. This error only happens when creating a first model, i.e. if there are any...

bug

TypeError: itr.getReader is not a function node_modules/ollama/dist/utils.js:120:28) My code : const ollama = new Ollama({ host: 'https://...' }) const ollamaResponse = await ollama.chat(apiMessage); Called from NodeJs, but it looks like...

I have a function to convert an imageURL (s3) to Base64 like below ``` export default async function toBase64ImageUrl( imgUrl: string ): Promise { const fetchImageUrl = await fetch(imgUrl); const...

enhancement

- `prompt_eval_count` is only defined on the first "chat" or "generate" request. - It is `undefined` on the second request with the same content. - When implementors rely on this...

Like `modelPath: path.join(__dirname, "models", "codellama-13b.Q3_K_M.gguf")` in https://github.com/withcatai/node-llama-cpp?tab=readme-ov-file#usage And, is this a client that use HTTP to communicate with ollama server, or use node-addon to do so? I hope I can...

enhancement

Running this code: ```ts const response = await ollama.pull({ model: props.modelName, stream: true }) for await (const data of response) { const percent = data.completed / data.total * 100 setPercent(percent)...

Uncaught Error: It looks like you're running in a browser-like environment. This is disabled by default, as it risks exposing your secret API credentials to attackers. If you understand the...

Hi reading docs from openai i can find a quite complete error handling: https://help.openai.com/en/articles/6897213-openai-library-error-types-guidance You can see the more complete code, i think is in python: ``` try: #Make your...

Hi recently i made a introduction course about llama2/3:https://learn.deeplearning.ai/courses/prompt-engineering-with-llama-2/lesson/1/introduction The teacher was one of the CEO of Llama3: https://www.linkedin.com/in/amitsangani?trk=public_post_feed-actor-name So they teach that for using Llama you have to format...