Skip to content

Customer Open-AI alike API Support #1

@yfyang86

Description

@yfyang86

🚀 The feature

Customer Open-AI alike API Support

Per anhp's request: sinaptik-ai#799 (comment)

Motivation, pitch

For example, LM-Studio's example:

curl http://localhost:1378/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{ 
  "messages": [ 
    { "role": "system", "content": "Always answer in rhymes." },
    { "role": "user", "content": "Introduce yourself." }
  ], 
  "temperature": 0.7, 
  "max_tokens": -1,
  "stream": false
}

Alternatives

No response

Additional context

I've added some examples with some screenshots of settings cust-openai. Please checkout the cust-openai branch (my fork).

git clone https://github.com/yfyang86/pandas-ai
cd pandas-ai
git checkout cust-openai
git pull
python -m pip install .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions