pass headers to llm instance
This commit is contained in:
parent
3bbe03cb9c
commit
452cb0e91f
|
@ -120,6 +120,7 @@ export const getAvailableChatModelProviders = async () => {
|
||||||
acc[model.model] = new ChatOllama({
|
acc[model.model] = new ChatOllama({
|
||||||
baseUrl: ollamaEndpoint,
|
baseUrl: ollamaEndpoint,
|
||||||
model: model.model,
|
model: model.model,
|
||||||
|
headers,
|
||||||
temperature: 0.7,
|
temperature: 0.7,
|
||||||
});
|
});
|
||||||
return acc;
|
return acc;
|
||||||
|
@ -167,6 +168,7 @@ export const getAvailableEmbeddingModelProviders = async () => {
|
||||||
models['ollama'] = ollamaModels.reduce((acc, model) => {
|
models['ollama'] = ollamaModels.reduce((acc, model) => {
|
||||||
acc[model.model] = new OllamaEmbeddings({
|
acc[model.model] = new OllamaEmbeddings({
|
||||||
baseUrl: ollamaEndpoint,
|
baseUrl: ollamaEndpoint,
|
||||||
|
headers,
|
||||||
model: model.model,
|
model: model.model,
|
||||||
});
|
});
|
||||||
return acc;
|
return acc;
|
||||||
|
|
Loading…
Reference in New Issue