Skip to content

Commit

Permalink
refactor: reformat code
Browse files Browse the repository at this point in the history
update: switch to yaml code tab when starts to generate the response
  • Loading branch information
傅暄桓 committed Dec 7, 2023
1 parent c7d38ff commit e291453
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion ai-json-form/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ getVersion()
if (response.status !== 200) return frontendOnlyHandler()
if (!response.data?.data?.version) return frontendOnlyHandler()
handler = new SocketIOBackendHandler(handlerParameters)
})
.catch((e) => {
console.error(e)
Expand Down
1 change: 1 addition & 0 deletions ai-json-form/src/openai.js
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ properties:
# This is a sample schema for mock response.`

export async function inference(prompts, handlerObj) {
handlerObj.tabActiveName.value = 'schemaDefYaml'
if (handlerObj.isMock.value) {
let chunk = mockedResponse.split('\n')
await Promise.all(
Expand Down

0 comments on commit e291453

Please sign in to comment.