Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add a proxy for the Gemini? #1524

Open
neilzhangpro opened this issue Nov 26, 2024 · 0 comments
Open

How to add a proxy for the Gemini? #1524

neilzhangpro opened this issue Nov 26, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@neilzhangpro
Copy link

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!

@neilzhangpro neilzhangpro added the bug Something isn't working label Nov 26, 2024
@himself65 himself65 self-assigned this Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants