How to use fine-tuned models with NodeJS client library?
Tried:
- Omitting “engine” → error: “bad request”
- Using fine-tuned model name as engine → error: “You requested a model that is not compatible with this engine. Please contact support@openai.com if you need assistance.”
- Using
completeFromModel
from as described in gpt-x (which official client is based on) → invalid request
await openai.createCompletion(engine, {
prompt,
model,
temperature: 0.8,
max_tokens: 123,
top_p: 1,
frequency_penalty: 0,
presence_penalty: 0,
stop: [" END"],
user
});
Ceifa’s original node client, gpt-x includes completeFromModel
endpoint, which doesn’t seem to be available in OpenAi’s official node client.
await openai.completeFromModel('FINE_TUNED_MODEL', {
prompt: 'Q: Hello\nA:'
});
Would appreciate any pointers or feedback.
Thanks!