Skip to content
Snippets Groups Projects
Commit 9216312b authored by Marcus Schiesser's avatar Marcus Schiesser
Browse files

docs: fix changsets and format

parent 660a2b34
Branches
No related tags found
No related merge requests found
--- ---
"llamaindex": patch "llamaindex": patch
"@llamaindex/examples": patch
--- ---
Added support for accessing Gemini via Vertex AI Added support for accessing Gemini via Vertex AI
--- ---
"llamaindex": minor "llamaindex": patch
--- ---
Fix text before heading in markdown reader Fix text before heading in markdown reader
...@@ -39,7 +39,8 @@ export class AnthropicAgent extends AgentRunner<Anthropic> { ...@@ -39,7 +39,8 @@ export class AnthropicAgent extends AgentRunner<Anthropic> {
constructor(params: AnthropicAgentParams) { constructor(params: AnthropicAgentParams) {
super({ super({
llm: llm:
params.llm ?? (Settings.llm instanceof Anthropic params.llm ??
(Settings.llm instanceof Anthropic
? (Settings.llm as Anthropic) ? (Settings.llm as Anthropic)
: new Anthropic()), : new Anthropic()),
chatHistory: params.chatHistory ?? [], chatHistory: params.chatHistory ?? [],
......
...@@ -36,7 +36,8 @@ export class OpenAIAgent extends AgentRunner<OpenAI> { ...@@ -36,7 +36,8 @@ export class OpenAIAgent extends AgentRunner<OpenAI> {
constructor(params: OpenAIAgentParams) { constructor(params: OpenAIAgentParams) {
super({ super({
llm: llm:
params.llm ?? (Settings.llm instanceof OpenAI params.llm ??
(Settings.llm instanceof OpenAI
? (Settings.llm as OpenAI) ? (Settings.llm as OpenAI)
: new OpenAI()), : new OpenAI()),
chatHistory: params.chatHistory ?? [], chatHistory: params.chatHistory ?? [],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment