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

Add instanceId field to ChatCompletionRequest #359

Merged
merged 1 commit into from
Jun 22, 2024

Conversation

harishv-collab
Copy link
Contributor

Q A
Bug fix? no
New feature? yes
BC breaks? no
Related Issue

Describe your change

Adds an instanceID field in ChatCompletionRequest which can be used to target a specific multi LoRA reserved instance.

Sample curl command:
curl -X POST https://api.openai.com/v1/chat/completions -H "Authorization: Bearer $OPENAI_API_KEY" -d '{"messages": [{"role":"user", "content": "how do i tie my shoes?"}], "model":"gpt-3.5-turbo-1106", "instance_id": "gpt-3.5-turbo-1106-instance"}' -H 'Content-Type: application/json'

What problem is this fixing?

There's no option currently to target a specific instance/fleet in OpenAI, especially if using multi LoRA.

Copy link
Owner

@aallam aallam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution

@aallam aallam merged commit e133f28 into aallam:main Jun 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants