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({
|
||||
baseUrl: ollamaEndpoint,
|
||||
model: model.model,
|
||||
headers,
|
||||
temperature: 0.7,
|
||||
});
|
||||
return acc;
|
||||
|
@ -167,6 +168,7 @@ export const getAvailableEmbeddingModelProviders = async () => {
|
|||
models['ollama'] = ollamaModels.reduce((acc, model) => {
|
||||
acc[model.model] = new OllamaEmbeddings({
|
||||
baseUrl: ollamaEndpoint,
|
||||
headers,
|
||||
model: model.model,
|
||||
});
|
||||
return acc;
|
||||
|
|
Loading…
Reference in New Issue