Portkey-AI / portkey-node-sdk

Build reliable, secure, and production-ready AI apps easily.

Home Page:https://portkey.ai/docs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Chore: Remove deprecated interfaces

VisargD opened this issue · comments

  • These interfaces are not referenced anywhere in the code. Moreover, the structure of these interfaces are of old format which are no longer valid.

  • LLMOptions

    export interface LLMOptions extends Constructs, ConversationInput, ModelParams {
    override_params?: Record<string, any>
    }

  • Constructs

    export interface Constructs {
    provider?: string;
    api_key?: string;
    virtual_key?: string;
    cache?: boolean;
    cache_age?: number;
    cache_status?: string;
    cache_force_refresh?: boolean;
    trace_id?: string;
    metadata?: Record<string, any>;
    weight?: number;
    retry?: RetrySettings;
    deployment_id?: string;
    resource_name?: string;
    api_version?: string;
    }

  • ConversationInput

    export interface ConversationInput {
    prompt?: string;
    messages?: Array<Message>
    }

🤖

It's great to see that you've identified these deprecated interfaces and are looking to remove them. Your contribution will help keep the codebase clean and maintainable. If you'd like to proceed with creating a pull request for this change, it would be a valuable addition to the repository. Thank you for your willingness to contribute!


This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

If you want to continue the conversation, start your reply with @dosu-bot.