Skip to content

Provider : deepseek and openrouter timeout handling with httpclientΒ #192

@mohammadrezaabp

Description

@mohammadrezaabp

What would you like to be added:

either timeOut for deepSeek provider and openRouter provider or implementing the constructor with httpClient like this:

public OpenRouterProvider(string apiKey, HttpClient httpClient)
: base(new OpenAiClient(httpClient, new Uri(CustomProviders.OpenRouterBaseUrl)))
{
Client.AuthorizeUsingBearer(apiKey);
}

public DeepSeekProvider(string apiKey, HttpClient httpClient)
: base(new OpenAiClient(httpClient, new Uri(CustomProviders.DeepSeekBaseUrl)))
{
Client.AuthorizeUsingBearer(apiKey);
}

Why is this needed:

some prompts take more time to process and after 100 seconds i get timeout

Anything else we need to know?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions