naftiko: 1.0.0-alpha2 info: label: Gateway REST API — text-completion.openapi_other description: 'Gateway REST API — text-completion.openapi_other. 2 operations. Lead operation: Create Chat Completion. Self-contained Naftiko capability covering one Fireworks Ai business surface.' tags: - Fireworks Ai - text-completion.openapi_other created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: FIREWORKS_AI_API_KEY: FIREWORKS_AI_API_KEY capability: consumes: - type: http namespace: merged-text-completion-openapi-other baseUri: '' description: Gateway REST API — text-completion.openapi_other business capability. Self-contained, no shared references. resources: - name: v1-chat-completions path: /v1/chat/completions operations: - name: createchatcompletionv1chatcompletionspost method: POST description: Create Chat Completion outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: v1-completions path: /v1/completions operations: - name: createcompletionv1completionspost method: POST description: Create Completion outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true authentication: type: bearer token: '{{env.FIREWORKS_AI_API_KEY}}' exposes: - type: rest namespace: merged-text-completion-openapi-other-rest port: 8080 description: REST adapter for Gateway REST API — text-completion.openapi_other. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/v1/chat/completions name: v1-chat-completions description: REST surface for v1-chat-completions. operations: - method: POST name: createchatcompletionv1chatcompletionspost description: Create Chat Completion call: merged-text-completion-openapi-other.createchatcompletionv1chatcompletionspost with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/v1/completions name: v1-completions description: REST surface for v1-completions. operations: - method: POST name: createcompletionv1completionspost description: Create Completion call: merged-text-completion-openapi-other.createcompletionv1completionspost with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: merged-text-completion-openapi-other-mcp port: 9090 transport: http description: MCP adapter for Gateway REST API — text-completion.openapi_other. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: create-chat-completion description: Create Chat Completion hints: readOnly: false destructive: false idempotent: false call: merged-text-completion-openapi-other.createchatcompletionv1chatcompletionspost with: body: tools.body outputParameters: - type: object mapping: $. - name: create-completion description: Create Completion hints: readOnly: false destructive: false idempotent: false call: merged-text-completion-openapi-other.createcompletionv1completionspost with: body: tools.body outputParameters: - type: object mapping: $.