- Add GPT-5 model definitions (gpt-5, gpt-5-mini, gpt-5-nano, gpt-5-chat-latest) - Implement GPT-5 Responses API support with intelligent fallback to Chat Completions - Add GPT-5 specific parameter handling (max_completion_tokens, temperature=1) - Support custom tools and freeform function calling capabilities - Add reasoning effort and verbosity control parameters - Implement GPT-5 connection testing service - Add model capability detection and automatic parameter transformation - Support both official OpenAI and third-party GPT-5 providers - Add todo list and sticker request UI components - Improve notebook support with better type definitions - Enhance debug logging and error handling for GPT-5 - Update model selector with GPT-5 compatibility checks This commit provides full GPT-5 support while maintaining backward compatibility with existing models.
32 lines
858 B
TypeScript
32 lines
858 B
TypeScript
import * as React from 'react'
|
|
import type { Command } from '../commands'
|
|
import { ResumeConversation } from '../screens/ResumeConversation'
|
|
import { render } from 'ink'
|
|
import { CACHE_PATHS, loadLogList } from '../utils/log'
|
|
|
|
export default {
|
|
type: 'local-jsx',
|
|
name: 'resume',
|
|
description: 'Resume a previous conversation',
|
|
isEnabled: true,
|
|
isHidden: false,
|
|
userFacingName() {
|
|
return 'resume'
|
|
},
|
|
async call(onDone, context) {
|
|
const { commands = [], tools = [], verbose = false } = context.options || {}
|
|
const logs = await loadLogList(CACHE_PATHS.messages())
|
|
render(
|
|
<ResumeConversation
|
|
commands={commands}
|
|
context={{ unmount: onDone }}
|
|
logs={logs}
|
|
tools={tools}
|
|
verbose={verbose}
|
|
/>,
|
|
)
|
|
// This return is here for type only
|
|
return null
|
|
},
|
|
} satisfies Command
|