Skip to content

How to add a proxy for the Gemini? #1524

Open
@neilzhangpro

Description

Hi, i wanna add a proxy to the Gemini API , how can i make it ? i just found that:

export declare class Gemini extends ToolCallLLM<GeminiAdditionalChatOptions> {
    model: GEMINI_MODEL;
    temperature: number;
    topP: number;
    maxTokens?: number | undefined;
    session: IGeminiSession;
    constructor(init?: GeminiConfig);
    get supportToolCall(): boolean;
    get metadata(): LLMMetadata;
    protected nonStreamChat(params: GeminiChatParamsNonStreaming): Promise<GeminiChatNonStreamResponse>;
    protected streamChat(params: GeminiChatParamsStreaming): GeminiChatStreamResponse;
    chat(params: GeminiChatParamsStreaming): Promise<GeminiChatStreamResponse>;
    chat(params: GeminiChatParamsNonStreaming): Promise<GeminiChatNonStreamResponse>;
    complete(params: LLMCompletionParamsStreaming): Promise<AsyncIterable<CompletionResponse>>;
    complete(params: LLMCompletionParamsNonStreaming): Promise<CompletionResponse>;
}

where can I set the apikey and baseUrl like the openai? thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions