Skip to content

Commit

Permalink
chore(examples): minor formatting changes (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Aug 15, 2024
1 parent 12be697 commit 35f5465
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions tests/api-resources/chat/completions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ describe('resource completions', () => {
test('create: only required params', async () => {
const responsePromise = client.chat.completions.create({
messages: [
{ role: 'system', content: 'content' },
{ role: 'system', content: 'content' },
{ role: 'system', content: 'content' },
{ content: 'content', role: 'system' },
{ content: 'content', role: 'system' },
{ content: 'content', role: 'system' },
],
model: 'mistralai/Mixtral-8x7B-Instruct-v0.1',
});
Expand All @@ -30,9 +30,9 @@ describe('resource completions', () => {
test('create: required and optional params', async () => {
const response = await client.chat.completions.create({
messages: [
{ role: 'system', content: 'content' },
{ role: 'system', content: 'content' },
{ role: 'system', content: 'content' },
{ content: 'content', role: 'system' },
{ content: 'content', role: 'system' },
{ content: 'content', role: 'system' },
],
model: 'mistralai/Mixtral-8x7B-Instruct-v0.1',
echo: true,
Expand All @@ -45,36 +45,36 @@ describe('resource completions', () => {
n: 1,
presence_penalty: 0,
repetition_penalty: 0,
response_format: { type: 'json', schema: { foo: 'string' } },
response_format: { schema: { foo: 'string' }, type: 'json' },
safety_model: 'safety_model_name',
stop: ['string', 'string', 'string'],
stream: false,
temperature: 0,
tool_choice: 'tool_name',
tools: [
{
type: 'tool_type',
function: {
description: 'A description of the function.',
name: 'function_name',
parameters: { foo: 'bar' },
},
type: 'tool_type',
},
{
type: 'tool_type',
function: {
description: 'A description of the function.',
name: 'function_name',
parameters: { foo: 'bar' },
},
type: 'tool_type',
},
{
type: 'tool_type',
function: {
description: 'A description of the function.',
name: 'function_name',
parameters: { foo: 'bar' },
},
type: 'tool_type',
},
],
top_k: 0,
Expand Down

0 comments on commit 35f5465

Please sign in to comment.