Comments (1)
First you should see if you have your model downloaded in ollama
you can see list of all your model with below command
ollama list
NAME ID SIZE MODIFIED
gemma2:latest ff02c3702f32 5.4 GB 2 weeks ago
llama3.1:latest 62757c860e01 4.7 GB 2 weeks ago
llama3:latest 365c0bd3c000 4.7 GB 6 weeks ago
If llama3.1 is avaible than you can easily used below code to call the model
const res = await generateText({
model: ollama
.ChatTextGenerator({
model: "llama3.1",
maxGenerationTokens: 500,
})
.withTextPrompt(),
prompt: prompt,
})
from modelfusion.
Related Issues (20)
- explore img + text -> image models / prompts
- move out openai cost calc from modelfusion and modelfusion/experimental into a standalone pkg that can also be used w/o modelfusion
- explore if there is a good local TTS that could be integrated
- explore variable output parsers, e.g. for list (when generated using GBNF grammar)
- BUG: Ollama response `prompt_eval_count` is required field. HOT 1
- Tools do not work with ollama HOT 1
- can't connect to https://api.openai.com:443/v1/audio/transcriptions HOT 4
- First parameter has member `readable` when running generate text on AWS Lambda. HOT 3
- experimental-vm-modules bug introduced in v0.134.0 HOT 7
- Ollama Mistral .withPromptTemplate Error HOT 3
- Cannot pass custom parameters to the provider
- Add support for gpt-4-turbo model
- Parameters for Hugging Face are not passed correctly to endpoint
- Streaming example doesn't forward provider request errors to the browser
- Anthropic Claude Support
- Path with space in causes problem HOT 1
- Update docs to include `response_format` for OpenAI ChatTextGenerator; `responseFormat` is supported but not documented HOT 1
- error TS2589: Type instantiation is excessively deep and possibly infinite. HOT 2
- TypeValidationError - Seems like if there are issue with OpenAI, it is still trying to call chat completion and giving type error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from modelfusion.